destroys only one actor?

calvin9403calvin9403 Member Posts: 3,186
edited November -1 in Working with GS (Mac)
Hey everyone

I got a problem in my game

I want when a button touch is press, delete one enemy(there is a bunch of them)

so what I do is

make an attribute press? boolean, false

when touch is press change it to true

in the enemy actor, when press? is true destroys this actor

but then it will destroy all of them, any ideas?

P.S. I aslo want when touch is press, destroy half of the enemy(ex: if there is 20 enemies then destroy 10, if 33 then destroy 17 etc)

thanks for the help

Calvin

_________________________________________________

http://www.gamesaladforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/

Comments

Sign In or Register to comment.