chikinov

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
chikinov
  • Сообщения: 6

Nate

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. :)
Аватара пользователя
Nate

Nate
  • Сообщения: 9949

chikinov

that's great :yes:
thanks very much
chikinov
  • Сообщения: 6


Вернуться в Bugs