I would like to know how to move a player’s pawn on a board game. Move is determined through a number variable.
I made a picture to illustrate. For example the player’s pawn is on the square number 1. The dice shows 3, so the variable = +3 and pawn has to move of 3 squares.
The question is how does it go from 1 to 2, then to 3 and finally to the square 4?
Another linked question. The pawn only passes through squares 2 and 3 without stopping. So the actions associated with these squares will not be executed. But if it stops there another time, these actions will be executed. How to do? Ideas?