Game Development Community

Animation Problems

by Jermaine Morgan · in Torque Game Engine · 11/03/2008 (11:31 am) · 1 replies

Hello everyone I have been having a small problem with my codes.

Basically I have a cat that runs up to the player.
when the cat collides with the player the cats attack animation plays

function Cat::onCollision(%this,%obj,%col)
{
 %obj.playThread(1, "attack1"); //I also tried 0 stops the attack animation
}
^^^
This works great
After the collision stop, The run animation stops also stop playing. How can i restart the run animation when their is no collision?
How can I fix this?
Any advice or pointers?




thanks in advance for anyhelp

#1
11/04/2008 (5:42 am)
Bumps...:)


Basically I just want to play the run animation if there is no collision any help?