I think this is my jumping code
//This sets the sprite at the beginning of the jump
if direction<90
sprite_index=jump_right
else if direction>90
sprite_index=jump_left
//This makes him actually jump
vspeed-=20
The jumping itself is an event thing
Okay...
In the character's creation code, D&D the Variable button, label the variable jump_limit, and set it to 0.
Now change the jumping code in the Press Up event to this
//This makes him actually jump
if var.jump_limit<2
{
vspeed-=20
jump_limit+=1
}
Mess around with it til it works. It should. What it does is check if the variable is up to a limit. If it isn't, he jumps and increases the variable so he can't jump again after two jumps.