Jumping and Walking help

So I am using the platformer template, and I was wondering how I can only have my player jump every 5 or so seconds. I created an integer of 5, and when the player jumps, I subtract 5. Every second, 1 is added to the integer, although this doesn't work. Need some help here. Also, when the user holds down the left or right button, the player slowly goes faster and faster. How can I get the player to travel at a set speed?
Best Answer
-
JohnPapiomitis Posts: 6,256
Here ya go.
You cant move left or right when you jump, and when you jump you have to wait another 5 seconds to jump again. Also travels at a set speed. Using accelerate wont do that because thats the point of accelerate. Think of pressing the gas pedal in a car, thats what accelerate does.
http://www.mediafire.com/?oooko933w3bu0lg
Answers
Hope this helps
Video: