help with jumping for side scroling game please

Game Editor comments and discussion.

help with jumping for side scroling game please

Postby mr-game » Tue Feb 27, 2007 8:59 pm

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
erm hi
mr-game
 
Posts: 28
Joined: Mon Jan 29, 2007 10:32 pm
Location: my computer
Score: 1 Give a positive score

Postby Sgt. Sparky » Tue Feb 27, 2007 10:34 pm

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.
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby mr-game » Fri Mar 02, 2007 8:13 pm

how do i make a var im confused
erm hi
mr-game
 
Posts: 28
Joined: Mon Jan 29, 2007 10:32 pm
Location: my computer
Score: 1 Give a positive score

Postby Sgt. Sparky » Fri Mar 02, 2007 10:39 pm

click on variables, then new, then you should get it from there :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby mr-game » Fri Mar 02, 2007 10:42 pm

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
erm hi
mr-game
 
Posts: 28
Joined: Mon Jan 29, 2007 10:32 pm
Location: my computer
Score: 1 Give a positive score

Postby Sgt. Sparky » Fri Mar 02, 2007 10:43 pm

did you press okay?




P.S.do you have MSN?
mine is: sgtsparky101@hotmail.com
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron