Jumping

Non-platform specific questions.

Jumping

Postby Jokke » Mon Aug 28, 2006 4:37 pm

Ive seen the script someone posted here so u only jump once, it works of course. But, if i hold the space bar down the character keeps going up and i can still jump in mid-air...oh that means it dont work. meh atleast i have gravity XD please help out
Image
Jokke
 
Posts: 65
Joined: Sat Aug 26, 2006 11:53 am
Location: Yes
Score: 0 Give a positive score

Postby makslane » Mon Aug 28, 2006 5:20 pm

makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Jokke » Mon Aug 28, 2006 5:52 pm

thanks for the help, but i got the code for only jumping once from the first link and it didnt help i can still pretend i have a jetpack on my back wich this character isnt supposed to XD
Image
Jokke
 
Posts: 65
Joined: Sat Aug 26, 2006 11:53 am
Location: Yes
Score: 0 Give a positive score

Postby Zehper48 » Tue Aug 29, 2006 1:12 am

add a keydown space script editor and type yvelocity -5;
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Postby Jokke » Tue Aug 29, 2006 11:06 am

well, thats kinda what i did and holding down space makes character fly
Image
Jokke
 
Posts: 65
Joined: Sat Aug 26, 2006 11:53 am
Location: Yes
Score: 0 Give a positive score

Postby Game A Gogo » Tue Aug 29, 2006 8:11 pm

on repeat thing, place it disable.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Jokke » Wed Aug 30, 2006 9:20 am

thanx i got it now
Image
Jokke
 
Posts: 65
Joined: Sat Aug 26, 2006 11:53 am
Location: Yes
Score: 0 Give a positive score

Postby Game A Gogo » Wed Aug 30, 2006 9:53 pm

no problem, if you want to keep your player to be able to jump only once, just use a variable.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Jokke » Thu Aug 31, 2006 7:26 am

yeah someone got to explain those variables in a demo or something...and i did canJump seen it in the abuse2 :P
Image
Jokke
 
Posts: 65
Joined: Sat Aug 26, 2006 11:53 am
Location: Yes
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest