Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
If/else
Old
timsally
Guest
 
Status:
Posts: n/a
Default If/else - 12-28-2010, 11:28 PM

Had a new assignment with my DCCCD class and created an Alice program where I use IF/ELSE statements to interact with the user's response to the question, "How old are you?" They needed to be 21, so I utilized the math functions in order to respond to the user's input.

The interactive capabilities of programming are exactly what I was hoping to learn through taking this course.

Still not use to the fact that some objects (hands, forearms, etc.) don't have the same axis of rotation as the rest of the person, so a ROTATE LEFT 1/4 REVOLUTION of the hand won't result in the same angle as it would for the forearm. Anyone know an easy way to breeze through this common occurence.

Tim S.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 12-29-2010, 12:52 PM

I don't quite understand what it is you are talking about, so unless you upload the file so I can look at it, I don't think I can help you with this one. sorry
   
Reply With Quote
Old
CodyAM1993
Member
 
CodyAM1993's Avatar
 
Status: Offline
Posts: 22
Join Date: Sep 2010
Default 12-29-2010, 07:29 PM

Unfortunately, no, there is no easier way to to do this. Its a lot of trial and error with moving body parts... I recommend using poses to move models of people if that isn't what your already doing. Using poses can look much more realistic and, from my experience, is much easier to code. Hope this helps.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 12-29-2010, 09:05 PM

Quote:
Originally Posted by CodyAM1993 View Post
Unfortunately, no, there is no easier way to to do this. Its a lot of trial and error with moving body parts... I recommend using poses to move models of people if that isn't what your already doing. Using poses can look much more realistic and, from my experience, is much easier to code. Hope this helps.
When I had written my original post, I hadn't taken that into consideration, but that is a very good idea. Also, if the pose you wan't isn't available, you can always capture the pose. If you don't know how to do this, tell me, and I will make a little example for you.
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Default 12-30-2010, 01:33 PM

You can use the axis of another object to move around, just use the "as seen by" feature under the little drop down arrow at the end of a move/turn/roll etc. tile.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [-]
   
Reply With Quote
Thanks
Old
timsally
Guest
 
Status:
Posts: n/a
Default Thanks - 01-12-2011, 12:45 AM

Thanks for the help.

I've started using SET POSE more to accomplish what I want...and I think the "as seen by" feature will definitely help me rotate things better.

Thanks again.

Tim S.
   
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.