Jump to content
Search Community

Control Speed

friendlygiraffe test
Moderator Tag

Recommended Posts

TweenMax tweens, TimelineLites and TimelineMaxes have currentProgress and timeScale values that can be dynamically set even tweened.

 

By using these properties you an accelerate or decelerate their rate of playback, you can even apply eases.

 

you can see this technique in action here:

 

http://www.snorkl.tv/2011/03/tween-a-ti ... xibillity/

 

 

below is a simple code example of making a TweenMax tween play faster than normal while it is playing:

 

import com.greensock.*;
import com.greensock.easing.*;

var t:TweenMax = TweenMax.to(m1, 4, {x:400, ease:Linear.easeNone});

//after 1 second make the speed of the tween 4x its normal speed
TweenLite.delayedCall(1, changeSpeed);

function changeSpeed(){
t.timeScale = 4;
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...