I try to use iTween PutOnPath to move object along path with control of position.
I’ dont understand what’s the right code syntax for this command in javascript.
...
iTween.PutOnPath(this.gameObject, iTween.Hash("path", iTweenPath.GetPath("Gamba1")) ...
...
Somebody help me?
iTween.PutOnPath(this.gameObject, iTween.Hash(“path”, iTweenPath.GetPath(“Gamba1”)), 50)
This will put your gameobject half way trough the path.
The number is a percentage of the path (0 is start of path and 100 is end) and its a float type.
http://itween.pixelplacement.com/documentation.php