Hello everyone,
Im developing a simple 2D game. Iv added movement options for left and right, up is jump. My problem is that the movement refresh rate is 5ms, and it moves 1px, sometimes (random times) the movement slows down as if the refresh rate is 10ms or something. Im not sure how i can debug this to find out why its doing this.
Could someone tell me why this might happen and/or how i can fix this or how i can debug to find why.
If youd like to see for yourself you can download the JAR file HERE.
Right arrow = Move Right
Left arrow = Move Left
Up arrow = Jump
I Key = Inventory open/close
Z Key = Pickup item (Green Boxes)
Thanks very much