Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Thread Tools Display Modes
Posts: n/a
Default Game - 07-23-2010, 12:52 AM

How to win it

Hotels in Kanyakumari
Kanyakumari Hotels
Reply With Quote
Super Moderator
x2495iiii's Avatar
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-23-2010, 01:51 AM

Originally Posted by zonedabone View Post
It has to do with events being terminated as they're happening. Instead of putting the movement right in the while key is pressed event, make a Boolean variables become true when you press, and false when you depress. Now, make a method on world start. Inside and infinite loop, put while the variable is true, and then put your method in there. This is a workaround for many event/while related errors. This especially helps when using poses. Note that for the indirect example, if the first event is simply reading a variable, you can eliminate it and use the while/loop function directly.

Using one event:

Using two events:
Goofy spammer above me aside, I'd love it if everyone who made a game made it like this. I can't play games that terminate events either. meaning, unfortunately, that the While a key is pressed events require special programming as well. Oh fun.
Reply With Quote

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