Hello, I'm slowly desperate. I'm trying to make a movement similar to chess.
When you click with the mouse on one of the characters, the possible fields should light up.
The player can only go 1 field forwards, backwards, right or left.
but i fail because the selected figure moves one step in the grid.
what is the easiest way to do this?