Game Development Community

help me

by yong1pop · in Torque X 3D · 02/01/2010 (6:12 am) · 3 replies

I am a jackaroo, so I want know do this,first I put space then the bot jump up,when it up to acme,then chang to other animation.This is all.

#1
02/01/2010 (12:13 pm)
actually..if you could explain your problem in english!

I might be able help...
#2
02/01/2010 (12:26 pm)
in the fps demo...
the animation is controlled through the TX3D Builder scene XML:

<AnimationState>
<StateType>StarterGame.MoveAnimationState</StateType>
<Animation type="GarageGames.Torque.T3D.TSAnimation">
<ThreadName>ActionThread</ThreadName>
<SequenceName>side</SequenceName>
<Name>Left</Name>
<TimeScale>-1.0</TimeScale>
</Animation>
</AnimationState>

The Sequence is stored in the dts or dsq and also defined in the movement component (.cs) at the game root..

public void SetupAnimations()
{
//Idle Animation
TSAnimation animationIdle = new TSAnimation();
animationIdle.ThreadName = "ActionThread";
animationIdle.SequenceName = "root";
animationIdle.Name = "Idle";
componentAnimation.AddAnimation(animationIdle);

in .fbx/collada the seq would be extracted from all animations..by keyframe start-end.. defined in XNA!!(seq run=frm 125-155 -cycle = yes, blend=No)


That is the most simplest way to explain it..if you do not understand these basic concepts..then go back about 10 steps..and start with XNA beginners tutorials, part1 step 1 and getting started series..
#3
02/01/2010 (10:02 pm)
thanks in advance for your reply,I am chinese,so my english is bad. I want to know how implement the jumping animation in Torque Script which include several separate animation, jump up,up to acme and fall.