"stop" command

PrimePrime Member Posts: 8
edited January 2012 in Working with GS (Mac)
Is there a way to stop a " move to"
I created an actor that move towards another. But put an object between them. Is there a way this moving actor on collision stop ... Sidestep. Then re move to its original destination?

Comments

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    you have to have an additional boolean ex. block.
    So in your move to rule, when game.block = false
    it will move to the particular point you specified.
    However create another the rule that when this actor collides with the object that blocks it, change game.block to true.
    try it.
  • PrimePrime Member Posts: 8
    Works great! Thanks!
Sign In or Register to comment.