Actor Detecting Other Actor's Touch

carlblanchetcarlblanchet Member Posts: 755
edited June 2012 in Working with GS (Mac)
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!

Best Answer

  • JustMe74JustMe74 Posts: 542
    edited June 2012 Accepted Answer
    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

Sign In or Register to comment.