freem-trg / eaze-tween

Automatically exported from code.google.com/p/eaze-tween
0 stars 0 forks source link

Overwrited tweens keeps skip update #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the code :

addEventListener(Event.ENTER_FRAME, onEnterFrame);

function onEnterFrame(e: Event): void {
     eaze(mc).to(0.5, { x: stage.mouseX} );//mc is a movieclip on the stage
}

What is the expected output? What do you see instead?
I expected to see the movieclip chase after the mouse
It's actually not moving

Please provide any additional information below.

Original issue reported on code.google.com by ThienHaF...@gmail.com on 26 Dec 2009 at 8:55

GoogleCodeExporter commented 9 years ago
Not an issue, this is an incorrect use of the engine - a tween engine is meant 
to 
animate from a fixed state 1 to fixed state 2 during a fixed time.

Use a "follow mouse" script instead - like:
http://orangesplotch.com/blog/flash-tutorial-elastic-object-follower/

Original comment by philippe...@gmail.com on 29 Dec 2009 at 12:31