- Home /
Question by
vincgoh · Dec 10, 2011 at 04:57 AM ·
javascriptitweenorienttopath
iTween JavaScript orienttopath bug?
I put iTween.cs in Plugins, then I created a simple cube, attached the following JavaScript to it:
function Update () { iTween.MoveTo(gameObject, {"x":903, "z":-258, "orienttopath":false, "speed":60, "easetype":"linear"} ); }
It moved fine. But when I turn orienttopath to true, it did orientated the direction but then it did not move. I just stayed on the spot. Using C# works.
I need to use JavaScript as the rest of my game is in JavaScript. I can use C# to move my game zombie character but I do not know how to make my JavaScript global variable "gameOver" to true if the zombie reached the destination.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613061942im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
iTween ValueTo onUpdateParams passing 1 Answer
Using private class strings with iTween event calls 0 Answers
Itween orienttopath 1 Answer