This isn't an 'advanced game topic' but it is for game programming. I'm testing out this 2D game i'm creating and i've been stuck with this problem for hours now.
My player can jump in the game but every time he does , his y co-ordinate increases by about 10 pixels and i'm sure it's a simple error to you but not to me. Why is this happening?
. What is Player\jumping vs. Player\jump? They both seem to be integer 0/1 flags?
. Player\y is obvious (a float I hope), and Player\jumph seems to be your changing y-velocity (also a float)?
. \timer seems to stop your jump after exactly 32 frames? (instead of checking for collision with anything?)
. \row, \frames, and \delayed seem irrelevant to the jump physics... right? Are they drawing-related variables?
And what do you mean his y-coordinate increases 10 pixels... is it instantaneous, or does he smoothly jump upward but then stop after 10 pixels? If you could fit this code into a small running example, we could probably fix it in minutes.
(It also seems like you're overcomplicating it... typically my "Player" objects just have a y-coordinate, a y-velocity, and an in-air 0/1 flag. Of course there is also a gravity value, and a jump-button-pressed flag as well.)