jumping

Game Editor comments and discussion.

jumping

Postby elite » Fri Oct 05, 2007 11:54 am

hi, again, i would like to know how to stop making the player jump continously when plressing the space bar too much times. Because in my game, if i keep pressing the space bar, the player keeps going higher and higher, and i dont want any idiot that plays my game to just keep jumping around and skipping the enemies. Any suggestions?

Thanks
Twigser
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: jumping

Postby Kalladdolf » Fri Oct 05, 2007 12:07 pm

make a variable called canjump.

For your player goes:
Collision -> top side -> platform -> Script Editor ->
Code: Select all
canjump=1;

Draw actor ->
Code: Select all
yvelocity += 1;

Key down -> space -> repeat: NO -> Script Editor ->
Code: Select all
if(canjump==1)
{yvelocíty = - 15; canjump = 0;}


:D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: jumping

Postby Spidy » Fri Oct 05, 2007 12:12 pm

click on script menu bar than add an actor variable called 'canjump'.on your player event add a colision event relating to a ground with a script editor than :

"canjump = 1;"

and your player key down event whatever you choosy jump button and make the script say

if(canjump==1)
{
yvelocity = -8;
canjump =0;
}


here is the answer
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: jumping

Postby Kalladdolf » Fri Oct 05, 2007 12:16 pm

Spidy didn't see my answer :D :D :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: jumping

Postby Bee-Ant » Fri Oct 05, 2007 12:31 pm

He just try to complete your answer... :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: jumping

Postby elite » Fri Oct 05, 2007 12:51 pm

oh yeah! thanks again
oh wait a minute, im a bit new to game editor, what do you mean by platform? (gasps in crowd) :oops:
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: jumping

Postby Bee-Ant » Fri Oct 05, 2007 12:59 pm

elite wrote:what do you mean by platform? (gasps in crowd) :oops:

Platform is a GROUND Actor, where your player stand... :D :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: jumping

Postby elite » Fri Oct 05, 2007 1:09 pm

Hmm I tried again but it dodnt work, i probably did something wrong, I copied and pasted all the code, but it still jumps multiple times in the air when I keep pressing the spacebar. :|
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: jumping

Postby Bee-Ant » Fri Oct 05, 2007 1:15 pm

Hey...dont copy-paste...it wouldn't work...wait...I'll make a demo...just 5 minutes... :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: jumping

Postby Bee-Ant » Fri Oct 05, 2007 1:23 pm

This is...hope help :D
Attachments
JumpingProblem.zip
(16.49 KiB) Downloaded 94 times
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: jumping

Postby Spidy » Fri Oct 05, 2007 3:36 pm

y r great bee-ant thx for the answer to kalladdolf
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: jumping

Postby Bee-Ant » Fri Oct 05, 2007 3:42 pm

I just answer with what I have saw... :D
Btw, you're welcome.
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron