how to destroy a actor with another actor
@tshirtbooth i have a button and a electrical ball that i want to turn off with the button,when the button is pressed the electricity stops and my actor can pass through, how can this be acheived? as this is critical and thanks again for the free art and is it fine if i useit in my game because its a commercial app......
Best Answers
-
jonmulcahy Posts: 10,408
Personal communications should be sent via email.
What you want to do us pretty easy. You need an attribute called something you can remember. And a button to trigger it
On button:
When button receives touch
Turn attribute electricy false
On fence:
When electricity false
Hide fence
On ball
When actor overlaps or collides with fence AND electricity is true
Destroy actor -
lazyrockey Posts: 4
my question:
how to set the rule on fence?
if we select "when attribute is change", will it be triggered everytime when the attribute is change? or we should have to add a Timer to check it every second?Personal communications should be sent via email.
What you want to do us pretty easy. You need an attribute called something you can remember. And a button to trigger it
On button:
When button receives touch
Turn attribute electricy false
On fence:
When electricity false
Hide fence
On ball
When actor overlaps or collides with fence AND electricity is true
Destroy actor
Answers