Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Stop an object in motion with events
Old
AIM
Guest
 
Status:
Posts: n/a
Unhappy Stop an object in motion with events - 09-26-2010, 02:30 PM

I'm going through the 'Starting out with Alice' textbook and reach an exercise where I have make the a car go around a circular track when you click a button, then stop in its place when you click a different button. However, I can't figure out to make the car stop

Anyone know a way to do this? I've read the Alice book through and through but can't find anything on it. I'm thinking I missed soething.

Thank you
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-26-2010, 04:41 PM

Use boolean variables to control that.

Basically,
Events
When <key> is typed
--<world.variable> set value to <true>
When <other key> is typed
--<world.variable> set value to <false>
Method
While <world.variable>
--car.move

Upload the world as an attachment and I'll show you more specifically.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
AIM
Guest
 
Status:
Posts: n/a
Default 10-26-2010, 05:01 PM

I apologize for this response benig so late. I understood what you were saying and got it working thanks to you. The help was much appreciated! I hope you can excuse my delay though. I run on a rather busy schedule so late in the year and just now got time to get back around to this forum.


Thank you!
~Abe
   
Reply With Quote
No prob
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Thumbs up No prob - 10-26-2010, 05:03 PM

Always welcome!


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
ferriwheel stop and run
Old
suvadhun
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2019
Default ferriwheel stop and run - 10-30-2019, 09:26 PM

Hello,
thanks i found something about this code but will you please go to more details. thank you.
Quote:
Originally Posted by debussybunny563 View Post
Use boolean variables to control that.

Basically,
Events
When <key> is typed
--<world.variable> set value to <true>
When <other key> is typed
--<world.variable> set value to <false>
Method
While <world.variable>
--car.move

Upload the world as an attachment and I'll show you more specifically.
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.