Jump to content
Search Community

About TimelineMax/reverse and speed

biyibird test
Moderator Tag

Recommended Posts

I am from china and my english is poor.I'm a newbie to TweenMax and would LOVE help!

 

Please open the zip file of attachment.for_help.zip

I am going to control the rotation of the mc1 -- "a truck".I have creat a tween like this.

 

var timeline:TimelineMax = new TimelineMax({onComplete:handler_timeline_onComplete,onReverseComplete:handler_reverse_onComplete,onUpdate:handler_timeline_onUpdate,paused:true});
timeline.append(TweenMax.to(mc1,_time,{frame:mc1.totalFrames,ease:Linear.easeNone}));

 

but how can I "speed up " In different directions(Clockwise and Counterclockwise)---and when I click the "btn3",it will play faster and faster. when i click the "btn4",it speed up In different directions.

 

Thanks for your answers.

Link to comment
Share on other sites

thank you for providing the clear files.

 

a TimelineLite/Max has a timeScale property which dictates the speed at which it plays

 

.5 = half speed

1 = normal speed

2 = double speed

 

 

to make it go faster and faster, you need to increment timeScale each time a button is pressed

 

btn4.addEventListener(MouseEvent.CLICK, handler_goFasterRight);

function goFasterRight(e:MouseEvent):void{
 timeline.timeScale += .5
}

 

 

Keep in mind, that the buttons for "normal speed left and right" need to set timeScale back to 1.

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...