I’m been having trouble creating a game with a set node path. The game I’m making places the player character on a strict path with nodes. For example, if the player presses a button to go left, she will move to the closest left node on the map; otherwise the player will get a warning that the player cannot move in that direction. The same factors for when the player want to go to the right, up or down.
I’ve been trying to create a forked path with iTween using the iTweenPath script, but I have run into some issues with the system. For example, for a path with 5 nodes (numbered 0 - 4), if node 2 could branch off to either node 3 or node 4, I cannot determine where the player should go to. One solution I have thought of was to create a new path for each decision, but then how would I define when the player is able to travel to a branch in the fork (i.e. from node 2 to either node 3 or 4)?
One step in the right direction would be the ability to place the player on a specific node on the path, but I’m not sure if this is possible to perform with iTween. I read another topic discussing placing an object from node to node, but I was unable to understand it.
Any suggestions for creating a forked path using iTween would be much appreciated.