Jump to content
Search Community

TweenLite or TimelineMax

deviator206 test
Moderator Tag

Recommended Posts

Hi ,

 

i want to create cyclic animation as you can for any slot based games.

I m used Tweenlite and TimelineMax but reel of Slot machine is repeating its animation with a jerk in it

Can anyone suggest me how to proceed

 

TimelineMax

var timeline:TimelineMax = new TimelineMax({repeat:nRepeatCount });

timeline.append( TweenLite.from(mc,1, {y:Expected_Position,onComplete:Bounding}) );

 

function Bounding():void

{

//i reset the Y to original position

}

Link to comment
Share on other sites

is the jerk because it slows down and then speeds up again?

 

try using Linear.easeNone as your ease

 

import com.greensock.easing*;

timeline.append( TweenLite.from(mc,1, {y:Expected_Position,onComplete:Bounding, ease:Linear.easeNone}) );

 

----

 

I would think bounds() is not necessary as when the timeline repeats it automatically sets everything back to the starting position. guess its there for a reason.

Link to comment
Share on other sites

Hi carl schooff,

 

Thanks a lot you are absolutely right - " jerk because it slows down and then speeds up again"

Now the effect looks exactly the way as expected.

And Yes Bounding function is there for the purpose related to game

 

Thanks a lot . This POC paved way for my game development ahead!

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