Alice Community  

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

Reply
 
Thread Tools Display Modes
If turn Left do ___
Old
mbare
Guest
 
Status:
Posts: n/a
Default If turn Left do ___ - 09-08-2010, 07:48 AM

I am trying to write an IF statement that if the carousel is turning a particular direction the horses turn to or do not turn.

Can someone look at the attached and make suggestions.
Attached Files
File Type: a2w bm-Ch05-E11-carouselGo-Round.a2w (1.37 MB, 8 views)
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 09-08-2010, 09:59 AM

I'd make a world-level boolean variable that switches to true if the carousel is told to turn left and false if told to turn right, then have the horses' turn method refer to that variable.
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.