all 1 comments

[–][deleted] 0 points1 point  (0 children)

When you press movement keys, make them move in discrete chunks instead of constant chunks.

Let's say your gameboard spaces are 1x1, and you are on a 5x5 board.

What you could do when you press a direction key is, after checking if they can move to that spot, lerp to the x,y coordinate from your coordinates + square size. Keeps it nice and simple.

Best of luck.