How to destroy a different actor then 'this actor'
BasGoodboy
Member, PRO Posts: 310
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?
Goodboi Gamestudios | Monster Jumper now on the App Store
Comments
Goodboi Gamestudios | Monster Jumper now on the App Store
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
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
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-
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Goodboi Gamestudios | Monster Jumper now on the App Store