I am doing this shooting game. I want to do this part where you have to shoot a sprite 3 times to die. How do i make the sprite on the third shot die???? Currently all sprites die on the 1st shot. I want to make the boss die when you shoot it three times. Pls help.
Offline
Use a health variable for the boss and the damage code should be something like this:
When green flag clicked:
show
Set [health] to (3)
forever
if touching [bullet]
change [health] by (-1)
wait until not touching [bullet]
if [health] < (1)
hide #Or what you want to happen when he dies
Offline
I can't find a "not touching" box
EDIT found it.
"Not" under operators
"touching" under sensors
Sorry
Last edited by Plantagenet (2009-10-25 16:13:25)
Offline