I have a table of timers I create like so:
for k,v in pairs(delayLengths) do
table.insert(theTimers, timer.performWithDelay(v, function() createBlock(100,21) end))
end
And then during my pause function I do this:
for i = #theTimers,1,-1 do timer.pause( theTimers[i] ) end
And during unpause:
for i = #theTimers,1,-1 do timer.resume( theTimers[i] ) end
But this isn’t working. The blocks aren’t spawning when they should. Instead, none of them spawn for a little bit but then a bunch spawn at once. Some other timers for other tasks I have in place stop working as well, and some event Listeners are late to react after pause. I assume it is some kind of performance issue. Any ideas?