1. what is the best way to make a tween repeat infinitely? Currently I'm doing something like
tween.onComplete = function (self) self:setPosition(0);self:setPaused(false) end
repeatCount = math.huge
which works, but seems a bit hackish. Just wondering if there's a "right way".
2. more importantly: what's a good way to have a tween repeat back and forth a couple of times, then call a callback?
Practical example: scale an object from 1-3 and back 3-1, repeat the process three times, then call a callback. In this case I want to start a level zoomed out and pulsate the goal-sprite a couple of times to show where it is, then zoom back in to the player.
Do I need to setup a chain of callbacks or something manually, or is there a back-and-forth that can be used with repeatCount that I've missed?