Game Development Community

How to extend animation for character?

by Tom Giant · in Torque 3D Professional · 10/28/2010 (3:20 am) · 3 replies

I'm reading a book published a few years ago about Torque, its title is "3D Game Programming Al in One".
The book mentions the Torque-Supported Animation Sequences about "Animating Characters", for instance, run, walk, back, look, jump, fall, etc.
I wonder how to extend the supported animation sequences in Torque 3D. For example, I want to add a special animation for AIPlayer, could I do that only by modifying some scripts(in cs files), or shall I have to modify the c++ codes, for instance, in the class "AIPlayer"?

Thanks for any help in advance.

#1
10/28/2010 (8:08 am)
You can do it by just making changes to script. You do not need to modify the base animation code in the player.cpp or the aiplayer.cpp. Just take a look into the script files for stuff relating to the animation threads and animation sequences. Those should help you get started on what you want to do.
#2
10/29/2010 (10:55 am)
Got it. Thanks for your reply.
#3
10/29/2010 (7:02 pm)
That really depends on just what you mean by "extend the supported animation sequences".