Page 1 of 1

help with jumping for side scroling game please

PostPosted: Tue Feb 27, 2007 8:59 pm
by mr-game
i want it so he cant only jump once because at the moment he can keep juping while in the air how do i make it so he can only jump once not keep jumping in the air

PostPosted: Tue Feb 27, 2007 10:34 pm
by Sgt. Sparky
make a var called jump,
on the repeated key down Event of the up key:
Code: Select all
if(jump == 1)
{
 yelocity = - what you want;
 jump = 0;
}

and on the collision on the top side of the ground:
Code: Select all
Jump = 1;

:D I hope that helps.

PostPosted: Fri Mar 02, 2007 8:13 pm
by mr-game
how do i make a var im confused

PostPosted: Fri Mar 02, 2007 10:39 pm
by Sgt. Sparky
click on variables, then new, then you should get it from there :D

PostPosted: Fri Mar 02, 2007 10:42 pm
by mr-game
ok didnt work then cam up with some random thing that normaly comes up when spelling wronge or its placed wronge so i dont get it again :(
said error with code and told me to fix it lol erm how

PostPosted: Fri Mar 02, 2007 10:43 pm
by Sgt. Sparky
did you press okay?




P.S.do you have MSN?
mine is: sgtsparky101@hotmail.com