Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a question about using Box2D to simulate a physics-platformer. I manage to make the character move to the right and left, and jumping as well. However, jumping seems extremely slow when compared to most tile-based platformers.

Is there a way to speed up the jumping and falling of the player? I of course know from my basic physics lessons that 'heavier' objects don't fall faster in the real world, but is there a way to simulate this in Box2D?

share|improve this question
2  
Increase the gravity of the player for faster down, increase the force of the jump for faster up (and to compensate for the increase in gravity). –  Byte56 Jan 8 '13 at 17:41
add comment

1 Answer

up vote 3 down vote accepted

You're likely simulating some kind of upward force greater than gravity to make the physics object "jump". Increasing the amount of force will allow the character to reach a higher velocity quickly. Likewise, increasing the force of gravity on the player will make them fall faster.

You can either increase gravity for the entire world, or apply an additional constant force to the player to simulate increased gravity.

Make sure you also increase the jump force when you increase gravity to allow the jump force to overcome the increase in gravity.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.