quick question about destroying a certain actor.
HailCaes3r
Member Posts: 9
I have three actors. Say for example numbers 1,2 and 3. By clicking on actor number 3 I would want number 1 and 2 to be destroyed. Any advice on how to go about doing this or could someone point me in the right direction? Thanks
Comments
create a boolean called DestroyActors.
In the number 3 actor say, when touch is pressed > change attribute DestroyActors to true.
In the other wise section of the rule say, change attribute DestroyActors to false.
in actors 1 & 2 create a rule that says when attribute DestroyActors is true Destroy Actor
Sometimes simplifying the explanation of what you're trying to do results in getting answers that aren't complex enough for what you need, but I'll assume for now that you actually have three actors and want the other two to be destroyed when you click on one.
Here's a demo but if you need something else, provide more details about what you're trying to do.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank you both for the answers, yes thats exactly what I was looking for. I figured it was something with a boolean but didnt have the correct format. Ill provide more details as well next time but you assumed correct haha, thanks again
That's a different way to make it work, @tatiang.
Thanks for sharing