Page 1 of 1

My actor just won't stop jumping!

PostPosted: Thu Aug 02, 2007 1:14 pm
by gamemaistro
Hey, all.
I have set a key down event on Space bar for the actor to perform a jump. But, when the actor is in the air and I hit Space again, he jumps again! How can I stop this? I have even disabled the Repeat option.

Please Help guys! All my actors are reaching the moon and only you can help!

PostPosted: Thu Aug 02, 2007 1:28 pm
by pixelpoop

PostPosted: Thu Aug 02, 2007 3:27 pm
by automail10
me and supa-tails have a tutorial topic.

Link: http://game-editor.com/forum/tp-4019-Au ... hings.html

PostPosted: Fri Aug 03, 2007 3:24 am
by arcreamer
add variable called canJump and in draw actor, canJump = 1;
in key down event
if (canJump = 1);
{
yvelocity = -17;
canJump = 0;
}


i think... im still learning

PostPosted: Fri Aug 03, 2007 2:39 pm
by gamemaistro
Thanks a lot everyone! :D