Jump to content
Search Community

possible to affect timeScale within Multiple items

timaging test
Moderator Tag

Recommended Posts

Hi,

 

I have this setup and am trying to time scale just the second half. Right now they all come in using 0.1 and I want to change the timescale of the second half. This all needs to loop, so I tried multiple timelines, but they were overwriting each other on playback. I've named the ones I want to go slower as "labelSLOWER". I have a hunch this can't be done, but just checking:

 

var mainIntroIn:TimelineMax = new TimelineMax({repeat:-1});

 

 

 

mainIntroIn.appendMultiple([new TweenMax(labelREGULAR,  1, {alpha:1, ease:Quad.easeInOut}),

                                             new TweenMax(labelREGULAR,  1, {alpha:1, ease:Quad.easeInOut}),

                                             new TweenMax(labelREGULAR,  1, {alpha:1, ease:Quad.easeInOut}),

 

 

                                             new TweenMax(labelREGULAR,  1, {alpha:0, ease:Quad.easeInOut, delay:6}),

                                             new TweenMax(labelREGULAR,  1, {alpha:0, ease:Quad.easeInOut, delay:6}),

                                             new TweenMax(labelREGULAR,  1, {alpha:0, ease:Quad.easeInOut, delay:6}),

 

 

                                             new TweenMax(labelSLOWER,  1, {alpha:1, ease:Quad.easeInOut, delay:6}),

                                             new TweenMax(labelSLOWER,  1, {alpha:1, ease:Quad.easeInOut, delay:6}),

                                             new TweenMax(labelSLOWER,  1, {alpha:1, ease:Quad.easeInOut, delay:6}),

 

   

 

                                             new TweenMax(labelSLOWER,  1, {alpha:0, y:"30", ease:Quad.easeInOut, delay:16}),

                                             new TweenMax(labelSLOWER,  1, {alpha:0, y:"30", ease:Quad.easeInOut, delay:16}),

                                             new TweenMax(labelSLOWER,  1, {alpha:0, ease:Quad.easeInOut, delay:16})], 0, TweenAlign.NORMAL, 0.1);

 

 

 

Thanks!! 

Dave

 

Link to comment
Share on other sites

The best way would be to break up your regular and slower animations into separate groups that you animate with staggerTo() very similar to what I suggested here:

 

http://greensock.com/forums/topic/13764-timelinelite-repeat-not-working/?p=57986

 

You can definitely change timeScale() of your timeline while it is playing. You can use the call() method of TimelineLite to call a function like

mainintro.call(changeTimeScale, position) // you will need to figure out the position

function changeTimeScale() {
  mainintro.timeScale(0.2) // make slower
}

when the timeline repeats you will also need to set the 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...