Insectoid @ December 30th 2013, 8:57 pm wrote:
I can't look at your code right now, so I'm not sure if this is your issue, but remember that in sdl (and most graphics libraries), (0,0) is the top-left corner and increasing the y coordinate goes down. So to jump, you actually want to decrease the y value.
It could also be that you haven't implemented gravity yet. There are plenty of tutorials on this available in Turing Help. Don't worry that the examples are in Turing, the concepts still apply.
Yup, I remember (0,0) is in the top left corner and increasing the y coordinate goes down.
I think I just didn't do the gravity properly. I'll look into that.