- Home /
SuperJump and SuperSpeed
How I can do SuperJump or SuperSpeed after pressing any button ?
just increase the var that controls the speed, when a certain button is down.
Answer by AngryOldMan · Mar 26, 2011 at 12:14 PM
if you have a normal speed and super speed then you need a function which changes the normal speed variable to your determined superspeed.
if you want to just generally move quicker all the time increase the speeed variable for your player move.
and if you want to ask questions here and get a decent answer please be more specific with the questions you ask.
Answer by Unamine · Mar 26, 2011 at 10:44 AM
Very simple, you simply increase the value of speed and jump, if they have already predetermined by exemplor if we press the jump button + shift you will increase the value of the variable pattern until you release the shift key, but if you wanted the character to give a super jump just by pressing the jump, you can create a timer, which will increase the value of which is variable according to the weather, anything, ask here ...
Hope this helps