wradcliffe
Jan 15, 2015 - 08:34
I am working with the layer.animate('rotate' scene function and it works as expected. I do not understand how to rotate something back and forth - say +90 and then -90.
This combination does not work - only the second call seems to execute:
self.layer.animate('rotation', self.layer.rotation + 90, duration=0.25, autoreverse=True)
self.layer.animate('rotation', self.layer.rotation - 90, duration=0.25, autoreverse=True)
and so I tried this which also does not work:
self.layer.animate('rotation', self.layer.rotation + 90, duration=0.25, autoreverse=True)
self.layer.animate('rotation', self.layer.rotation - 90, duration=0.25, delay=0.25, autoreverse=True)
does this mean I have to execute the second animate via a completion function, or is there a way to hack a curve that would cause it to mirror + to -?