Quantcast
Channel: Questions in topic: "moveto"
Viewing all articles
Browse latest Browse all 116

iTween, moving to a node on a path.

$
0
0
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.

Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>