1546
Game Design! / Re: double jump on "game maker"
« on: September 24, 2008, 11:01:37 am »(NOTE) My right curly-brace key is broken, so curly braces will be replaced with < and >
I've dabbled in the ways of GM for a long time... Here's a simple version on how to do double jump!
First, in your object you want to be your hero or whatever the hell it is that is double jumping, put this in the create event...
DJ=1
Here, we declare DJ as a variable to count as our double jump, we'll be using it very soon.
Next, you want to create a "Step" event, and inside it, throw all this code in!
if place_meeting(x,y+1,obj_block) and keyboard_check_pressed(vk_up)
<
DJ=1
vspeed=-7
>
else if DJ=1 and kayboard_check_pressed(vk_up)
<
DJ=0
vspeed=-6
>
: show
