I'm making a board game and I decided to try and use iTween for the pathing around the board. I have 42 tiles around my board, each with it's own node. I can get the gameObject to go completely around the path, but I'm lost at how to get it to only move to the node I need it to. I'm using a dice in the game to deiced how many spots the gameObject is to move if that makes a difference.
Would really appreciate any help, an example of a scenario would be if the game object was on node 3 and rolled a 6 it would go to node 9.
Note: I'm writing this in javascript.
↧