How to set if the actor wasn't hit

flameblue59

  • Posts: 113
Hi, anyone can help me regarding collision about how to check if the actor wasn't hit the baby as it can only check when the actor hit the baby. Thanks

flameblue59

  • Posts: 113
anyone can help me please?. I dunno how if the actor doesn't detect the object.

Innes

  • *
  • Posts: 1960
Give the actor an 'actor value' called 'hit' and set it to false when the actor is created. If the actor hits the baby, set the value of 'hit' to true.

You can check the status of the 'hit' actor value at any time, and if it is false, you will know that the actor has not hit the baby.

If this doesn't solve the problem for you, please explain your requirements in more detail.
Visit www.TheStencylBook.com - the only published book for learning Stencyl.

flameblue59

  • Posts: 113
I've given the value to the actor but when the actor hit the baby the value get "true" then the actor pass the baby, how the value get back into "false". I dunno how to set when the actor doesn't hit the baby.

Innes

  • *
  • Posts: 1960
Okay, I think it was a misunderstanding due to use of language; I think you want to detect when an actor is no longer colliding.

Try this thread: http://community.stencyl.com/index.php/topic,37132.msg210094.html#msg210094
Visit www.TheStencylBook.com - the only published book for learning Stencyl.