Don't make actor reappear on scene reset
Mayhem_Madness
Member, PRO Posts: 168
Hi everyone, i have an actor that when collides with another actor the first actor gets destroyed.
So i wanted to know how to make that actor not reappear when the scene is reset.
Thankyou.
Thor.
Comments
@Thor
Make an attribute called "Dead"
Before the colliding actor destroys change "Dead" to true
Tell the actor that when dead is true it should destroy.
Reset Scene
Actor will self destruct.
You'll need to store the value of the "dead" boolean in either a game attribute or a table cell since those two places do not get reset when you use a Reset Scene behavior.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks, I should have specified...
When the second actor collides with a completely different actor thats when the scene resets, so would i need to do anything for that?
Thanks.
Thor.