Twitching animations

Topics regarding Scripting with Reality Factory
Post Reply
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Twitching animations

Post by Danimita92 » Sun May 04, 2008 9:46 pm

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

Post Reply