here is the code I am using,
- Code: Select all
anim = animpos;
if(key[KEY_LEFT] == 1)
{
ChangeAnimation("Event Actor", "Heli_02Rotate3", FORWARD);
animpos = anim;
ChangeAnimationDirection("Event Actor", FORWARD);
}
if(key[KEY_RIGHT] == 1)
{
ChangeAnimation("Event Actor", "Heli_01Rotate3", FORWARD);
animpos = anim;
ChangeAnimationDirection("Event Actor", BACKWARD);
}
and yes, I am making a Helicopter Game.