Hello all
Ok so I’ve developed a small game and currently stuck on an annoying bug.
Bug description?
If a character is still, it reacts to the press of a movement key immediately moving in that direction (no matter what the new direction is…)
But however, once the character is in motion and a new movement key is pressed(i.e if the character moves up, and as the up key is released and the right key is released), the character faces the new direction with no movement for approximately 2, maybe 3 redraws (where 1 redraw is 80ms) before it starts moving again.
The problem I’m facing now is that if I change the update time for a redraw to something lower such as 30ms, the game operates faster, but how would I go about keeping the animation smoother without adding new images to my animation array?
Help would be greatly appreciated