How to destroy a different actor then 'this actor'
Hey guys,
I want, on mouse click, to have two certain actors be destroyed other then 'this actor'.
The only rule I can find is.. destroy 'this actor'. Can't I make two others be destroyed after clicking with a mouse on one character that should stay?
I want, on mouse click, to have two certain actors be destroyed other then 'this actor'.
The only rule I can find is.. destroy 'this actor'. Can't I make two others be destroyed after clicking with a mouse on one character that should stay?
Comments
when mouse button is pressed (or when touch is pressed or whatever you want)
do
change attribute 'destroy' to true
in the actors that have to be destroyed
if attribute 'destroy' is true
do
destroy this actor
say
if touch is pressed
do
change attribute 'destroy' to true
else
change attribute 'destroy' to false
in the actors that have to destroyed
if attribute 'destroy is true and if mouse position is outside
do
destroy this actor
hope this helped
good luck!
-Timo-