Spawning random enemies, and for some reason the first one wont die but the rest do...help!?
bnvkte
Member Posts: 1
Basically i have a zombie actor with the attribute hp set to 3
When a bullet actor collides with the zombie it lowers its hp by 1, when its hp reaches 0 it dies
this works with every zombie except the first one created by the spawn actor, all the rest spawned from it die, i have no idea what to do
When a bullet actor collides with the zombie it lowers its hp by 1, when its hp reaches 0 it dies
this works with every zombie except the first one created by the spawn actor, all the rest spawned from it die, i have no idea what to do
Comments
http://s249.beta.photobucket.com/user/bnvkte/library/screens?
It could be that self.hp is going negative. If so, change the rule to self.hp <= 0.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User