SDL help

Here is my source.
I want to make the player to jump and after to fell down.
But until now i have put this:

if(up==true && (dstY1+heroe->h < 900) )

So that means that if the player goes 100 meters after will fell down.
But i dont want this.
I want to do 100 meters up from the place that he is.
For example if he is in the earth,to go 100 meters,if he is in an obstacle that has 40 meters high,to go 140 meters not 100 again.

In general i want the normal jumping.

Any help?
Topic archived. No new replies allowed.