How to implement a board game movement.

Ok, so in this image i am trying to create a “boardgame” i am wondering if i can move say, 5 to the right, left, etc.

Can anyone Help?

Thanks in advance!

The easiest way to do it would be to picture the board as a grid (15 by 15 in this case), with each dot in its own grid tile. Then if you want to move 5 to the right, you increment the x position by the width of a grid tile multiplied by 5.

The question is, do you want to pop directly there or slide there?
If you want to pop then the answer above is correct.

If you want to slide, then you set a velocity to the right and check on update if you are within a “fudge distance” that is about equal to your move per frame. If so then you set the velocity back to zero and then set your position in your tsrnaform as described above.