please help

Talk about making games.

please help

Postby gcreator » Wed May 16, 2007 6:25 pm

i don't know how to make my player jump only once :!: :!: :!:
if i push the jump button multiple times, the character just keeps jumping
higher
gcreator
 
Posts: 8
Joined: Mon Apr 30, 2007 9:20 pm
Score: 0 Give a positive score

Postby MrScience101 » Wed May 16, 2007 9:15 pm

If you could post your code so we could look at it, it would probably be easier.

But there are a number of ways to do it. One is to use a script switch, where you have a variable that is true when jumping and therefor ignores any further jump strokes until the jump is over. Another is to ignore key strokes until the jump animation is over. Also you could use a timer.
User avatar
MrScience101
 
Posts: 115
Joined: Tue Mar 20, 2007 9:52 pm
Score: 13 Give a positive score

Postby Kodo » Wed May 16, 2007 9:24 pm

Please search the forum, this has been answered about 100 times ;) If you're still having problems then let us know!
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby gcreator » Thu May 17, 2007 12:51 pm

thank you :)
gcreator
 
Posts: 8
Joined: Mon Apr 30, 2007 9:20 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest