I’m trying to add animations in my game with Image Sheets. In my game 4 dots will flash from purple to blue consecutively, not at the same time. So I need a way to only animate after a dot has flashed. I like the transition.to’s onComplete:
transition.to(dot1, {someProperty = 1, onComplete = dot2Flash})
I’m sort of looking for this:
dot1:play(onComplete = dot2Flash)
Is there any way to do this?
EDIT:
Never mind - I did:
dot1:play() timer.performWithDelay(1000, dot2Flash)