Game Development Community

Animation Kept Looping and player.cs Help

by Sventhors · in Artist Corner · 10/03/2005 (9:51 am) · 1 replies

When I exported my animation to TGE it just kept jumping up and down without moving. I have made an
rabbit that jumps forward when it moves. When I stop to press W it just went up and down(jumpinhg. But before it was working when I stop pressing W(no jumping). I have tried several thing. Did press something wrong in maya.

Also, I have naming convention Question. This is my player.cs for my rabbit is this wrong
datablock TSShapeConstructor(PlayerDts)
{
   baseShape = "./player.dts";
   sequence0 = "./player_root.dsq root";
   sequence1 = "./player_forward.dsq run";
};

sequence1 = "./player_forward.dsq run";

What is the difference between forward and run. Do I save as player_forward.mb and my Sequence is sequence_run. Is that correct.

Thanks.

#1
10/03/2005 (10:40 am)
The Torque movement animations (basically, the first 4 sequences IIRC) are used internally by the codebase to handle a lot of things:

1) velocity appropriate animations. Play the run when your velocity is high enough, etc.
2) Coordinating footsteps with the actual ground, so triggers fire appropriately for footprints as well as dust puffs (and sounds)
3) Know what to play with a diagonal movement..basically it blends the appropriate (velocity based) forward anim with the side to side anim.

What I'm getting at here is that it doesn't simply play a single anim in a loop or non-loop, but directly controls the sequence and position within the animation based on a lot of factors.

Basically, I think you are going to have to take a good look at how the anims are played (player.cc mostly), and factor in your jump. My guess would be that you should use your jump animation as the run, but realize that you need to have a forward velocity as well.