How to make an arc'd, but not mario-like jump in python, pygame [duplicate]
- by PythonInProgress
This question already has an answer here:
Arc'd jumping method?
2 answers
Analysis of Mario game Physics [closed]
6 answers
I have looked at many, many questions similar to this, and cannot find a simple answer that includes the needed code. What i am trying to do is raise the y value of a square for a certain amount of time, then raise it a bit more, then a bit more, then lower it twice. I cant figure out how to use acceleration/friction, and might want to do that too.
P.S. - can someone tell me if i should post this on stackoverflow or not? Thanks all!
Edit: What i am looking for is not mario-like physics, but a simple equation that can be used to increase then decrease height over the time over a few seconds.