TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How to set if the actor wasn't hit
Pages:
1
How to set if the actor wasn't hit
flameblue59
Posts: 113
January 09, 2015, 08:35:41 pm
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
January 09, 2015, 10:51:35 pm
anyone can help me please?. I dunno how if the actor doesn't detect the object.
Innes
Posts: 1960
January 09, 2015, 11:00:23 pm
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
January 09, 2015, 11:34:22 pm
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
January 10, 2015, 12:42:24 am
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.
Pages:
1