This question already has an answer here:

I am making a 2D platform game in Java but I don't know how to apply gravity and jumping on my player and other living creatures in game that it looks natural and that it is physical correct. I have formula: speed = v0 + gt^2/2 but i don't know how to implement it in my code...

Thanks for any help.


marked as duplicate by Sean Middleditch, Seth Battin, bummzack, Anko, MichaelHouse Sep 18 '13 at 23:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.