I have a lot of transitions with onComplete functions which in turn have nested transitions. I read somewhere its better to call transition.pause/ transition.cancel twice to be on the safer side.
The scenario is when I’m switching scenes I just call the transition.cancel(tag) – to cancel all transitions with the particular tag.
The player hits the pause button I just call the transition.pause(tag) – to pause all transitions.
So should I be calling it twice, because some transitions are called using infinite loop timers.
Is it really necessary?
– Example of nested transitions
function callTransition() transition.to(object, {time = 1000, x = 100 ,onComplete = function() transition.to(object, {time = 1000, x = 200, onComplete = function() callTransition() end}) end }) end