Alice Community  

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

Reply
 
Thread Tools Display Modes
Having trouble with If/Else statements
Old
jman11288
Guest
 
Status:
Posts: n/a
Default Having trouble with If/Else statements - 09-13-2007, 08:55 PM

I'm trying to use an if/else statement in which the true factor is an object's pose. The object gets in that pose because I have an event in which it poses when it is clicked on.

For some reason the object will pose when i click on it, but the method I have ready if the pose is true(which it is) won't work. Any help on this would be greatly appreciated, I'm new at this.

Thanks in advance.

P.S. I have an attached screenshot of my work in progress, if that helps.
Attached Images
File Type: jpg Untitled.jpg (72.1 KB, 206 views)
   
Reply With Quote
Old
islandfever
Guest
 
Status:
Posts: n/a
Talking 09-14-2007, 07:54 PM

I think I have a solution. Instead of having your if/else statement react to poses, I suggest using boolean and true/false statements. Here's an example. Construct a true/false statement and set it to false, but then have a do together and have the statement turn true. Then have the if/else react to it becoming true. These are probably too small to see, if you still need help just ask!
Attached Images
File Type: jpg Alice Help.jpg (23.1 KB, 202 views)
File Type: jpg ALice help 2.jpg (23.7 KB, 201 views)
   
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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.