Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Reply
 
Thread Tools Display Modes
failure
Old
Uurth
Guest
 
Status:
Posts: n/a
Default failure - 03-18-2009, 10:35 AM

so far my game has failed alot but this last one has me stumped, any help would be greatly appreciated
Attached Files
File Type: a2w spooky.a2w (9.99 MB, 2 views)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 03-18-2009, 06:21 PM

Quote:
Originally Posted by Uurth View Post
so far my game has failed alot but this last one has me stumped, any help would be greatly appreciated
A little hard to explain - but you are using an event that stops immediately when the key is released - which generally will be in the middle of executing the method. Hence any loops, etc. will be abnormally terminated - giving the error you see.

The answer is to move the actual code into a method and start and stop it with boolean control variables set by events. Then the method will actually complete and then repeat or not depending on the condition of the control variable.

Do a search of the forum on "walk" for some more detailed examples.
   
Reply With Quote
Reply

Tags
fail, failure


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.