This is a fantastic class and I've been using it in the development of my game Epic Eric. I have noticed a rather large memory leak however due to the timers and transitions not being removed from allTimers and allTransitions. Adding this snippet into the cancel() method fixes it:
for k,v in pairs(allTimers) do
if(allTimers[k] == self)then
tRemove(allTimers, k)
end
end
This is a fantastic class and I've been using it in the development of my game Epic Eric. I have noticed a rather large memory leak however due to the timers and transitions not being removed from allTimers and allTransitions. Adding this snippet into the cancel() method fixes it:
for k,v in pairs(allTimers) do
if(allTimers[k] == self)then
tRemove(allTimers, k)
end
end