In my game main even boxing I have several problems but my most hated is the fact he wont go into a certain costume once a health variable reaches zero. It would be much appreciated if someone would give me asistance. 129691
Heres the link
http://scratch.mit.edu/projects/YAYALEC/129691
Last edited by YAYALEC (2008-03-29 00:03:10)
Offline
I think your problem is that you have the test for Blue's Health = 0 in a loop with a whole bunch of other things that take a long time to complete (Glides, Waits). So Blue's Health may have moved below zero by the time that test gets to run again.
The fix is to put the test in it's own Forever loop under it's own Green Flag Hat. That way it will happen much more frequently. Also, change the test to Blue's Health < 1 in case the health changes to less than zero before the test has a chance to run.
Hope that helps!
Offline