Alice Community  

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

Reply
 
Thread Tools Display Modes
Making things and actions stop
Old
g-whizz
Member
 
Status: Offline
Posts: 17
Join Date: Mar 2009
Default Making things and actions stop - 03-25-2009, 09:06 PM

Okay i've the Handsome prince walking, no problem. Hes walking toward the dummy and I want to get him to stop walking when he reaches the specific dummy. I tried everything except the proper solution obviously so I really need some help. Can anyone help me? Thanks.
________
Lovely Wendie

Last edited by g-whizz; 05-14-2011 at 12:22 PM.
   
Reply With Quote
Old
bladesworn
Guest
 
Status:
Posts: n/a
Default 03-27-2009, 10:57 AM

Are you using a loop to get him to walk?
   
Reply With Quote
Old
g-whizz
Member
 
Status: Offline
Posts: 17
Join Date: Mar 2009
Default 03-27-2009, 03:59 PM

ya. i've his legs walkin in a loop!?
________
NEVADA MEDICAL MARIJUANA DISPENSARIES

Last edited by g-whizz; 05-14-2011 at 12:22 PM.
   
Reply With Quote
Old
wongwanchap
Guest
 
Status:
Posts: n/a
Default 03-27-2009, 07:13 PM

so what u need is a while statement rather using loop.

1.) Set the condition of while statement to [if the object reach the destination] the possible form is <objectA.isCloseTo(1,objectB)>
2.) Inside the while do what u do inside the looping. (you using looping to walk, right?)
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.