Game Development Community

Splitting Strafe animation

by Oliver Ridgway · in Torque 3D Professional · 05/16/2012 (6:30 pm) · 3 replies

Hi Guys,
How would i go about splitting the "Side" animation into 2 seperate animations, and how would I trigger those animations.

Infact this applys to adding any new animation to the player, such as spirint, flip, roll, dive etc.

I've done a little bit of digging and all i can find is an old resource for TGEA which deals with the C source code. I've also done a search of all the scripts looking where animations are triggered and can't find what i've looking for.

Is this even possible from torque script?

About the author

Trying hard to make games...


#1
05/16/2012 (7:01 pm)
Not in TorqueScript, no. Have a look at Player::pickActionAnimation. I wrote a resource in TGE to move all this logic into scripts. I've managed to update it for T3D, but haven't had the time to make it a resource or anything yet. You should check it out, though - I go into some detail about how the Player animation system works, and it hasn't changed all that much from TGE to T3D, so even if you don't want to try porting the resource, it should give you some idea of how to go about modifying it to do some basic stuff.

Oh, and - this resource does just what you're looking for in source code, but doesn't go into as much detail. I'd give it a go first, then if you still want more, have a look at my resource.
#2
05/17/2012 (2:58 pm)
Cheers Daniel,
Thanks for the resources, I didn't think this could be done in script but wanted to be sure.

I'm not desperate for this yet so I'll probably come back to it later when i have more time to delve into the C++ source.

Thanks
#3
05/24/2012 (7:17 am)
Infact there is already a pose for Strafing "Side_right" so I'm in luck with this one.

Adding further poses means a trip too the source from the looks of things however.