Jump to content
Search Community

Not sure how to handle restarting a tweenMax reverse

sesemplare test
Moderator Tag

Recommended Posts

I am working on a project where there is a conveyor belt. On this belt items move from left to right. I am using TimeineMax with multiple tweenMax items. Once an item is off the screen the item is changed and I call tweenMax.restart() - works great.

 

What I am trying to do is reverse the belt using reverse() so the items go from right to left. I can do this without issue but I am having trouble figuring out how to restart the tween once it gets to the beginning of the tween. I need the item to restart the reverse process going from the end to the beginning. Any ideas on how to accomplish this?

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