Im just now starting to use iTween and Im wondering or having difficult getting my Object or Enemy started exactly where the first node is (by the way Im using “Visual iTween Path Editor” http://pixelplacement.com/2010/12/03/visual-editor-for-itween-motion-paths/). Its an absolutely amazing product cant believe its free.
But heres my problem if anyone knows a solution or if Im missing something please let me hear it
I’ll take any suggestions. I only have 2 nodes 1 2 for a Corridor
My Enemy for the path is located at:
X -105.3922
Y -6.710009
Z 289.1131
And The my first node is placed in the same exact spot: (see attached image)
X -105.3922
Y -6.710009
Z 289.1131
But when the Enemy is triggered to goto the path it seems that the enemy will walk away from the path then after a second or two finally goes onto the path? and with him walking away from the path or actually not starting where the path is, it looks quirky and I cant figure out how to have it start exactly where it should?
Now if I move the enemy further away from the path to go right on it, it looks a little better but the speed it takes the enemy to get to the path is different than when the enemy is actually on the path soooo Im having difficulty syncing up the walk animation with the speed of the enemy moving 2 different speeds going to the path then on the path.
Ive been at this for 2 days now and am starting to think it may have something to do with global positioning or something but I cant be sure??? Im just not that smart lol. There is also a small noticeable difference with the speed the enemy going from node1 to node2 but thats ok Id just be happy to have the enemy start where it should to alleviate the quickyness of him starting to move on his path and having 2 different speeds.
Im not intentionally pointing the bad things Im just trying to figure out how to solve this because Its a sweet tool to have and to use especially for enemies and paths its SWEET and easy to use.
Can anyone help? or know of a solution I’ll take any suggestions ![]()
var enemy1 : GameObject;
var timeWalking : float = 6.0;
function ActivateEnemy()
{
iTween.MoveTo(enemy1,iTween.Hash("path",iTweenPath.GetPath("Corridor"),"time",timeWalking,"lookTime",0.2,"easetype",iTween.EaseType.linear));
}
