This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-03-28 23:59:43

YAYALEC
Scratcher
Registered: 2007-07-19
Posts: 100+

I need some help

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)


Smile likes to be happy. Smile also likes domination. Copy this message onto your signature and this Smile: =-). To help him Dominate the forums.

Offline

 

#2 2008-03-29 06:01:37

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: I need some help

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!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer