Page 1 of 1

Something....

PostPosted: Tue Dec 18, 2007 11:47 am
by Azou
Hi everybody!!Ok,i noted a problem with the jump action.When my main character is on air,he's walking,like on the ground!! Oh yeah,he's going to falllike normal,but how can i do that,when he's on air,when we push the walk button,he advance,but with the animation jump??? :|

Re: Something....

PostPosted: Tue Dec 18, 2007 3:30 pm
by Spidy
first u must have jump left and jump right animation go to KeyDown=choose jump button=then go to script write the jump code then write this

if(playerRight);
{
ChangeAnimation=Jumpright
}
if(playerLeft);
{
ChangeAnimation=Jumpleft
}
-----------------
and remember make 2 variable no 1 playerRight and no 2 playerLeft

Re: Something....

PostPosted: Wed Dec 19, 2007 2:54 am
by Bee-Ant
KeyDown>Jump>ScriptEditor>
Code: Select all
if(canjump==1)
{
    yvelocity-=10;
    if(right==1)
    {
        ChangeAnimation("EventActor","JumpRight",FORWARD);
    }
    if(right==0)
    {
        ChangeAnimation("EventActor","JumpLeft",FORWARD);
    }
    canjump=0;
}

Re: Something....

PostPosted: Mon Dec 24, 2007 7:05 pm
by Azou
Okay,thanx!!!!! :mrgreen: