Using A Die Roll Mechanic To Move Sprites Along A Tile Map

I’ve been working on a 1-4 player game involving using a die rolling mechanic to move the sprite along a tile map. I want the die to roll and then highlight the available spaces that aren’t obstacles and have the player click the tile of choice. I’ve been unsuccessful in highlighting and controlling the movement to the die roll values.

I attempted to integrate A* path finding from https://www.raywenderlich.com/1734-how-to-implement-a-pathfinding-with-swift, however, it takes the sprite all the way to the end and ignores the die mechanic.

Any help or resources would be appreciated.

This topic was automatically closed after 166 days. New replies are no longer allowed.