Jump to content
Search Community

orientToBezier in Starling frameworkd

Dejan777 test
Moderator Tag

Recommended Posts

I have worked with TweenMax in Starling framework and it all worked very good except option orientToBezier which gave strange results like fast random spinning of starling object during tweening.

 

Example of code is:

TweenMax.to(_starlingSprite, 20, {bezierThrough:[{x:1350, y:500}, {x:550, y:1000}, {x:1250, y:1500}],delay:5, orientToBezier:true});

 

Do you have idea why orientToBezier doesn't work right with Starling or maybe what to do to make it work right?

Link to comment
Share on other sites

  • 10 months later...

Was this problem ever get resolved? The same thing is happening to me.

 

I have a simple Starling sprite and I am calling...

 

TweenMax.to(mc, 3, {bezier:[{x:209, y:126}, {x:149, y:348}, {x:300, y:345}], orientToBezier:true});

 

... same result, the Sprite spins really fast around its pivot point and not the path.

 

Thanks!

 

-Shane

Link to comment
Share on other sites

  • 8 months later...

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