My actor just won't stop jumping!

Game Editor comments and discussion.

My actor just won't stop jumping!

Postby gamemaistro » Thu Aug 02, 2007 1:14 pm

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!
Please don't make me angry. I'm running out of places to hide the bodies.
gamemaistro
 
Posts: 14
Joined: Sun Jul 15, 2007 9:02 am
Score: 0 Give a positive score

Postby pixelpoop » Thu Aug 02, 2007 1:28 pm

User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby automail10 » Thu Aug 02, 2007 3:27 pm

me and supa-tails have a tutorial topic.

Link: http://game-editor.com/forum/tp-4019-Au ... hings.html
Back
User avatar
automail10
 
Posts: 280
Joined: Sun Jun 03, 2007 11:30 pm
Location: On a pancake on a bunny.
Score: 5 Give a positive score

Postby arcreamer » Fri Aug 03, 2007 3:24 am

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
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Postby gamemaistro » Fri Aug 03, 2007 2:39 pm

Thanks a lot everyone! :D
Please don't make me angry. I'm running out of places to hide the bodies.
gamemaistro
 
Posts: 14
Joined: Sun Jul 15, 2007 9:02 am
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron