So heres the game.
http://scratch.mid.edu/projects/Craigster001/2272454
My foe will not die when HP reaches zero.
Wait until<HP> =0
Change ghost affect by 100 (Should i switch with the hide block?)
Broadcast 'Die'
Stop script
However, the die does not work, nor does the foe merely dissapear.
Offline
Try wait until HP < 1 instead of = 0, to counter the possibility that it could skip past 0 and enter the negatives.
Last edited by Kileymeister (2012-01-14 15:12:45)
Offline
I found your issue, it's just because your health dips below zero, so the script doesn't start.
Try adding this block (I linked the picture, since the pictures are off on the forums):
https://lh5.googleusercontent.com/-wv8p … 6/jbkb.gif
Hope this helps!
Offline
Put:
When green flag clicked
Wait until "Health"=(0) or "Health"<(0)
Broadcast "Game over"
That should work.
Last edited by RedRocker227 (2012-01-16 10:37:51)
Offline