I’m having a problem with iTweenPath, i’m using iTweenPath to move a ball on a track. The ball is working fine and is following the track. But at every begin of a path, the ball rolls back a few inches before it rolls forward.
I’m using this line of code for the path and ball moving:
Not sure if this is going to be the solution for you but have you tried any of the other easetypes? Maybe even an easetype linear (just to rule it out as being the culprit for your issue).
When you use iTween with paths an initial path segment is automatically generated to get your object to the first point. To turn off this functionality use “moveToPath” in your call and set it to false.
I’m using iTween 2.0.44 with Unity 3.4 and I get the following error:
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,iTweenPath].Add (System.String key, .iTweenPath value)
iTweenPath.OnEnable () (at Assets/Plugins/iTweenPath.cs:17)
I have a scene1 with 3 paths for different objects, after loading scene2 and then loading scene1 I receive that error.
I get this same error when I am simply trying to reload a scene… what is happening is when the scene reloads, iTweenPath is attempting to duplicate keys the keys it already made for your paths… which is causing an error. This is fatal on mobile devices… anyone got a fix?