if (vel_y <= 0 && vel_y >= -659) { vel_y-=5; } if (vel_y >= 0 && vel_y <= 659) { vel_y+=5; }
Phil, walk through the code with your mind, and think about what vel_y will do under different situations.
Basically, your 2nd variables you check doesn't need to be velocity, it needs to be position.
If you can't get this, stop trying. You gave it a good try, but this isn't the fields for you.