1 Bullet 5 Actors!!!! Help!!!!
AppTapLLC
Member Posts: 10
I have made a rule where actors spawn every 5 seconds and walk towards my other actor that i control. The object of the game is to kill the actors that are coming at me. i have made an integer set at 5 and i have stated in the actors rule that when a bullet hits it the integer is set to -1. When the integer get sto 0 the actor is killed but it is killing all of the newly spawned actors instead of just the one getting fired at in the front lines.
can anyone help me?
can anyone help me?
Comments
_______________________________________
http://www.gamesaladforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/
first off if your bullet is not destroying when it hits the first actor it will continue on through all the rest. is that what you mean?
Second you need to be using change attribute self.lives to self.lives-1 if you put just -1 it will just go to -1 not decrease by 1.
Third, You need to setup your lives attribute in the actor itself instead of just a game attribute being accessed by all of the enemies.
So if all of that doesn't fix your issues then let us know and we'll see what else we can think of.
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
Thanks again for all the quick responses and help.