Page 1 of 1

Twitching animations

Posted: Sun May 04, 2008 9:46 pm
by Danimita92
Hi everybody, I'm having a little problem with my scripted player's animations. They seem to "twitch" a little bit. Here's a video, maybe you can notice it:
http://youtube.com/watch?v=aAHElfNIkuk

I think it may be recieving the animation orden too many times, but i can't be sure. this is for example the walk animation part in the script:

Code: Select all

if(IsKeyDown(K_FOR))
    {
        if(self.IsFalling=true)
        {
            HighLevel("Falling");
            return 0;
        }
        else
        {
        //forward
        self.ideal_yaw=self.player_yaw;
        ANIM=StringCopy(WALKANIM);
        ANC = 2;
        SPEED=Integer(PLAYERSPEED);
        }
Modified from the genericplayer.s