- Home /
iTween - How to move an object that is currently undergoing a "tweening"?
I have a sphere, that goes up and down in a loop. I'm doing it as following via iTween:
iTween.MoveTo(gameObject, new Hashtable
{
{"position", transform.position - new Vector3(0, 20, 0)},
{"time", 1},
{"easetype", iTween.EaseType.easeInOutSine},
{"looptype", iTween.LoopType.pingPong}
});
It works fine alright.
The problem is I can no longer move this sphere.
I want to move the sphere around my stage while it is going up and down.
Answer by Elysian.Zhen · Mar 24, 2012 at 12:26 PM
I took a step back and re-analysed my problem. The problem I have reduced to the simplest form is: How do I have two animations that interact on the same object?
MoveAdd was the function I needed, as it doesn't take a snapshot of the initial position.
I think I should leave this question here in case someone bumps into the same problem as me.
Your answer
Follow this Question
Related Questions
iTween — Possible to animate then return back to original? 1 Answer
Zeppelin flying controls with itween 0 Answers
Move Object Using iTween 2 Answers
Blender Animation Looping Delay Problem 2 Answers