Is this possible in TGB (Anamations)
by Robert Carroll · in Torque Game Builder · 11/27/2009 (11:22 pm) · 1 replies
Hi, Im making a platformer, and need the gun to play an anamation when the mouse is down. Heres what I have
====
Is there any way to do this, by changing the airborn?
====
function platformerAnamTionsAIBehavior::setCurrentAnimation(%this)
{
// Animations.
if(%this.owner.airborne)
{
if(%yVelocity < 0)
%this.owner.playAnimation(Gunstill);
else
%this.owner.playAnimation(GunShoot);
}
else
{
if(%xVelocity == 0)
{
%this.owner.playAnimation();
}
else
{
if(%this.owner.getAnimationName() $= "")
{
if(%this.owner.getIsAnimationFinished())
%this.owner.playAnimation();
}
else
%this.owner.playAnimation();
}
}
}Is there any way to do this, by changing the airborn?
About the author
Stay Up all night playing PS3 ;) add me PSN: RCBASEBALL13.
Torque Owner Robert Carroll