Alice Community  

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

Reply
 
Thread Tools Display Modes
Make object stop moving at certain point
Old
n00bist
Guest
 
Status:
Posts: n/a
Default Make object stop moving at certain point - 12-07-2009, 08:55 PM

I have a randommove function that moves an object along randomly. I have to put this inside of a Do Together loop (along with another object moving randomly - a race). However, they never stop moving!

It says to put the Do Together inside of a While loop, but I have no idea how to get them to stop.
   
Reply With Quote
Old
Scott300
Senior Member
 
Status: Offline
Posts: 80
Join Date: Feb 2009
Location: Ohio
Default 12-07-2009, 11:43 PM

while variable is true
{
Code
}
and set the variable to false when you want the while to stop, but the while will keep looping till the variable is not equal to true.
  Send a message via AIM to Scott300 Send a message via MSN to Scott300  
Reply With Quote
Reply


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.