Quote:
Originally Posted by Noct
Exactly how can you animate something without knowing where it starts or ends?
|
But you will know where it will start, and where it will end, you'll just don't know it at "design time".
Quote:
Originally Posted by Noct
Unless, are you asking about coding something dynamically?
Like the user inputs the start/end point and your app does the tween?
|
That is exactly what I mean.
You have a specific object, in which you do an animation, for example.
Object._x=0;
Object._y=0;
Then, the Object moves 100 x units (ex. pixels) forward, being at position:
Object._x=100;
Object._y=0;
You add an animation to the object. "light" out, and "heavy" in, with a motion tween in the middle.
Now, the problem is, I want to do several animations in the same object, in which I will not know the actual position at a certain period of the application, and not know the endind point either.
This meaning that, I want to supply the X and Y vars for the ending position object, and let it animate according to it's current position, using it's predefined animation.