Actor Detecting Other Actor's Touch
Hey all!
Trying to have it so that when my character actor touches another object actor, then it causes game over.
How could I accomplish that?
Thanks!
Trying to have it so that when my character actor touches another object actor, then it causes game over.
How could I accomplish that?
Thanks!
Best Answer
-
JustMe74 Posts: 542
1). Create a Boolean attribute - let's call it GameOver - and make it default to false.
2). On one of the actors, set up a rule that says when it touches the other one, make GameOver true.
3). Have an actor somewhere in your scene that has a rule that triggers when GameOver is True and handles whatever is supposed to happen when the game ends.
Answers
Fantastic! Thanks guys!