Tripleplay Animator tweenRotation

58 views
Skip to first unread message

Gérald Pereira

unread,
Aug 24, 2012, 6:03:11 PM8/24/12
to pl...@googlegroups.com
Hello,

Using tripleplay Animator, I'm trying to create the animation of a sun on the horizon. So my sun has to rotate around the bottom of my screen. 
When I use tweenRotation(sunLayer).to(0.5f), it rotates around the upper left of my screen. Is there a method to set the center of the rotation ?

Regards,

Gérald.

GrayBird

unread,
Aug 29, 2012, 7:53:15 AM8/29/12
to pl...@googlegroups.com
I guess you should set origin to you incoming layer and this will be the point of rotation...

суббота, 25 августа 2012 г., 1:03:11 UTC+3 пользователь Gérald Pereira написал:
Reply all
Reply to author
Forward
0 new messages