Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Paper Link in Progress not going so well
Old
islandfever
Guest
 
Status:
Posts: n/a
Default Paper Link in Progress not going so well - 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. I stressed over it for 2 hours and I can't figure it out.
Attached Files
File Type: a2w Link ALice Example.a2w (477.9 KB, 691 views)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 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.

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.
Attached Files
File Type: a2w LA with Loop&If.a2w (537.4 KB, 680 views)
   
Reply With Quote
Old
islandfever
Guest
 
Status:
Posts: n/a
Default 08-24-2007, 10:40 PM

THanks for the help!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.