PDA

View Full Version : Paper Link in Progress not going so well


islandfever
08-21-2007, 08:17 PM
I'm making a Paper Link game but it constantly freezes after you let go of the left or right key. If anyone can figure out the problem I'd be very greatful. :D I stressed over it for 2 hours and I can't figure it out. :(

DrJim
08-23-2007, 11:45 PM
First problem was you were doing a method call in the "during" phase of the "event while" - thus giving a new call each time the while was evaluated and eventually having a very long string of pending calls.

Tried to fix it with a while loop in the method itself, but had a new problem - couldn't get the "end" condition to register and terminate the while properly.

Eventually, after several crashes, I went to the attached, which is pretty much the same thing done the hard way. Hate infinite loops :( - but also get tired of crashing every few minutes. :mad:

Once again "event whiles" look like something to avoid in Alice 2.0 - didn't see an obvious way to do that in this case, however.

islandfever
08-24-2007, 10:40 PM
THanks for the help! :D