event will not be fired if its time is 0 and frameCount == 1
if (lastTime >= frames[frameCount - 1]) return;
i believe it is because of the above code
lastTime must be always >= 0
event will not be fired if its time is 0 and frameCount == 1
if (lastTime >= frames[frameCount - 1]) return;
i believe it is because of the above code
lastTime must be always >= 0
I finally got sick of edge cases with events and wrote unit tests for event timeline:
https://github.com/EsotericSoftware/spi ... Tests.java
Hopefully this catches them all. I've fixed all the runtimes, so you should be good to go now.
that's great :yes:
thanks very much