- Home /
loop a chain of iTween actions
I'm trying to chain some iTween actions (moveTo, rotateTo, scaleTo) and loop the whole chain, but only the last one loops. All the others are only executetd one time.
Simple example:
iTween.MoveTo(gameObject, iTween.Hash("x", 2, "y", 1, "z", 4, "easeType", "linear", "loopType", "loop", "time", 1,"delay",0));
iTween.MoveTo(gameObject, iTween.Hash("x", 0, "y", 1, "z", 4, "easeType", "linear", "loopType", "loop", "time", 1,"delay",1));
iTween.MoveTo(gameObject, iTween.Hash("x", 0, "y", 1, "z", 2, "easeType", "linear", "loopType", "loop", "time", 1,"delay",2));
iTween.MoveTo(gameObject, iTween.Hash("x", 2, "y", 1, "z", 2, "easeType", "linear", "loopType", "loop", "time", 1, "delay", 3));
All moveTo's are executed one time and then the last one loop every 3 sec. So what i'm doing wrong? And is there a better way for chaining than using delays? I know that i can use a path for the moveTo's but that does not work for rotateTo and ScaleTo does it?
Thanks!
Your answer
Follow this Question
Related Questions
how to use float update for speed in itween,itween how to use float update 0 Answers
iTween.PutOnPath similar function for LeanTween or DoTween 1 Answer
How can I save an iTween animation as a .anim file? 1 Answer
No appropriate version of 'iTween.PutOnPath' for argument list ... was found 3 Answers
iTween with bool C# issues 0 Answers