Something....

Non-platform specific questions.

Something....

Postby Azou » Tue Dec 18, 2007 11:47 am

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??? :|
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Something....

Postby Spidy » Tue Dec 18, 2007 3:30 pm

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
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: Something....

Postby Bee-Ant » Wed Dec 19, 2007 2:54 am

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;
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Something....

Postby Azou » Mon Dec 24, 2007 7:05 pm

Okay,thanx!!!!! :mrgreen:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron