Hello,
I am having a bit of trouble juicifying my game, which among others involves rotating tiles. My rotation func looks like this:
self.rotation = self.rotation + 1
if self.rotation > 3 then self.rotation = 0 end
go.animate(".", "euler.z", go.PLAYBACK_ONCE_FORWARD, self.rotation * 90, go.EASING_LINEAR, 0.2)
It works flawlessly for 3 steps but then as it goes from 270 to 0 it changes the turning direction (which is to be expected). Is there any way around this?
Thanks!