Jump amount control by holding down button longer?
![bladeolson](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I have created a jumping character. Right now if I push "jump" while touching the ground it sets attribute to "jump" and the jump sequence is initiated.
I set the Y Linierar velocity of the character to for .25 seconds to 300. This creates a nice jump. So far so good.
However, I am wondering has anyone implemented a jump that will for example give more jump "power" if the jump button is held longer? So short taps would be a short jump and holing it down would jump to a preset max jump? I looked for examples and the closest thing I could see was traffic Ninja.
I would appreciate some ideas.
blade
I set the Y Linierar velocity of the character to for .25 seconds to 300. This creates a nice jump. So far so good.
However, I am wondering has anyone implemented a jump that will for example give more jump "power" if the jump button is held longer? So short taps would be a short jump and holing it down would jump to a preset max jump? I looked for examples and the closest thing I could see was traffic Ninja.
I would appreciate some ideas.
blade
Comments
Yep. Try this out: http://img407.imageshack.us/img407/2483/helpa.png. Needs tweaking, but will work.
I've missed you
then dont stack it the "move up"
like they said uncheck run to completion
So I tried the suggestions and it still is not working right. When I uncheck the run to completion button the guy just jumps a couple inches off the ground. If I increase the acceletation amount he jumps too high. So I tried to apply a max speed and that does not seem to be helping.
My Rule for Jumping also has two requirements 1 is "jump" is true ( button pressed ) and the 2nd is actor is "on the ground"
I am wondering if I have this kind of attribute then trigger him to jump he is no longer on the ground anymore so the longer keypress is not working?
Last thing, how do you counteract the goofy movement in the air while jumping. Meaning, if you jump to the right you can still move to the left in the air , feels odd. What do you guys think?
thanks for the help by the way. attached is screen shot from my project
http://files.me.com/daniel_blade_olson/1fyow3
(other wise)
timer=0.6
change velocity to 450
and then put slightly more until you find what increase you want