Alice Community  

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

Reply
 
Thread Tools Display Modes
Edited: Dragon walk
Old
Myo
Guest
 
Status:
Posts: n/a
Default Edited: Dragon walk - 06-01-2009, 11:18 AM

The question I have is how exactly do you get all four legs of a dragon to move forward and back all at once? I am trying to make it walk forward for a bit realistically.

When I use the following code, the dragon's legs doesn't move forward and back at all but makes the dragon slide:

Do together
dragon.frontLeftLeg.lowerLeg, turn foward, 0.1 revolutions
dragon.frontLeftLeg.lowerLeg, turn backward " "
dragon.front RightLeg.lowerLeg turn foward " "
dragon.frontRightLeg.lowerLeg turn backward " "
dragon.backLeftLeg.lowerLeg turn forward " "
dragon.backLeftLeg.lowerLeg turn backward " "
dragon.backRightLeg.lowerLeg turn foward " "
dragon.backRightLeg.lowerLeg turn backward " "

When I use this:
Do together
dragon.frontLeftLeg.lowerLeg, turn foward, 0.1 revolutions
dragon.frontLeftLeg.lowerLeg, turn backward " "
dragon.front RightLeg.lowerLeg turn foward " "
dragon.frontRightLeg.lowerLeg turn backward " "

Nothing here
dragon.backLeftLeg.lowerLeg turn forward " "
dragon.backLeftLeg.lowerLeg turn backward " "
dragon.backRightLeg.lowerLeg turn foward " "
dragon.backRightLeg.lowerLeg turn backward " "

Only the back two legs of the dragon moves forward and back.
Do any of you know what I am doing wrong or how I can make all 4 legs move forward and back as the dragon travels forward?

Thanks

Last edited by Myo; 06-02-2009 at 12:46 PM.
   
Reply With Quote
Old
RockyTheConcreteDonkey
Guest
 
Status:
Posts: n/a
Wink 06-08-2009, 07:02 PM

Quote:
Originally Posted by Myo View Post
The question I have is how exactly do you get all four legs of a dragon to move forward and back all at once? I am trying to make it walk forward for a bit realistically.

When I use the following code, the dragon's legs doesn't move forward and back at all but makes the dragon slide:

Do together
dragon.frontLeftLeg.lowerLeg, turn foward, 0.1 revolutions
dragon.frontLeftLeg.lowerLeg, turn backward " "
" "
dragon.backLeftLeg.lowerLeg turn forward " "
dragon.backLeftLeg.lowerLeg turn backward " "
dragon.backRightLeg.lowerLeg turn foward " "
dragon.backRightLeg.lowerLeg turn backward " "

When I use this:
Do together
dragon.frontLeftLeg.lowerLeg, turn foward, 0.1 revolutions
dragon.frontLeftLeg.lowerLeg, turn backward " "
dragon.front RightLeg.lowerLeg turn foward " "
dragon.frontRightLeg.lowerLeg turn backward " "

Nothing here
dragon.backLeftLeg.lowerLeg turn forward " "
dragon.backLeftLeg.lowerLeg turn backward " "
dragon.backRightLeg.lowerLeg turn foward " "
dragon.backRightLeg.lowerLeg turn backward " "

Only the back two legs of the dragon moves forward and back.
Do any of you know what I am doing wrong or how I can make all 4 legs move forward and back as the dragon travels forward?

Thanks
Somtimes 2 commands done together will cancel eachother out, try making them in more individual do togerthers

Example... dragon.front RightLeg.lowerLeg turn foward
dragon.frontRightLeg.lowerLeg turn backward
^
|
|
Done together and they will cancel out eachother.
   
Reply With Quote
Old
danjim
Guest
 
Status:
Posts: n/a
Default 06-22-2009, 11:49 AM

If you need to do it in a do together statement, you could try the do in order inside of that. I've had to use that to make a mummy walk.
   
Reply With Quote
Old
Senuska
Guest
 
Status:
Posts: n/a
Default 06-28-2009, 08:10 PM

Quote:
Originally Posted by danjim View Post
If you need to do it in a do together statement, you could try the do in order inside of that. I've had to use that to make a mummy walk.
That works.
   
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.