Game Development Community

Help with Character animations

by Duane Richards · in Torque Game Engine · 11/24/2001 (12:57 pm) · 3 replies

Hey all!

Does anyone have any experience with implementing new animations in the Torque engine? I have some animators creating new files for me, now I just have to figure out how to get the engine to use them when certain keys are pressed. For example, crouching and going prone are captured from the user, and the animations exist, but I have to tie them together now.

Any ideas?

Thanks!

#1
11/25/2001 (9:27 am)
All the player animation is in the game/player.cc file.

The player deals with two kinds of animations (called Actions), those that are automatically selected from input moves, or player movement, and include running, falling, jumping, fall recovery, etc. These are all listed in the static ActionAnimationList table, and selected by pickActionAnimation().

The others are action animations run from scripts, which call the setActionAnimation method directly.

If you search for the word Action in player.cc, you should run across everything related to this.
#2
11/26/2001 (11:31 am)
Thanks, Tim!

So if I want the animation controlled by the server, is it better to put it in the animations list in player.cc or have it added by the scripts?
#3
11/26/2001 (7:16 pm)
Tim, one more follow-up question:

Are names assigned to the .dsq listings in the player.cs file significant? Do the move listings have to match the names of .dsq animation file?

Thanks again for the help!