Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Dragon walk (http://www.alice.org/community/showthread.php?t=2713)

Myo 06-01-2009 11:18 AM

Edited: Dragon walk
 
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

RockyTheConcreteDonkey 06-08-2009 07:02 PM

[QUOTE=Myo;10398]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[/QUOTE]

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.

danjim 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.

Senuska 06-28-2009 08:10 PM

[QUOTE=danjim;10747]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.[/QUOTE]

That works.


All times are GMT -5. The time now is 01:59 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.