Adding anims
by Nathan Kent · in Torque Game Engine · 01/15/2008 (4:36 am) · 1 replies
I have resently added some code for swimming, and a melee system into my game. The only problem is that I have no clue how to make directional swimming anims (forward, backwards, left, right, up, down, root), and I don't know make the root change depending on if my player has a sword, is in water, or is on the ground. If anyone could help me, I'd appreciate it!
Edit-> I was thinking something like:
Edit-> I was thinking something like:
if(mIsSwimming) anim = "sm" + anim; else if (mHasSword) anim = "h1" + anim; else anim = anim;
About the author
Torque Owner Nathan Kent