pixijs/spine

Reverse animation (timeScale -1) ... animation is hidden in a while

kulabros opened this issue · 0 comments

Hi all, I'm trying to add reversing of animations, alowing setting timeScale to negative values. I thought it's working, I remeber it was working. But now in my case in the application I have, which is obviosly a standard spine animation on stage, I try to manually adjust timeScale from js console.

When I set positive value, everything is ok. On zero it stops, ok. When I set negative timeScale (-1), the animation starts to be reversed as I would expected, but suddenly in a while animation dissapears! When I change timeScale back to positive value, I have to wait a while and than suddenly the animation is visible and playing..

Sometimes the animations dissapears immediately I change the timeScale to negative value, and immediately shows back when changed back to positive value...

Pixi.js 6.5.9., pixi-spine 3.0.1. Thanks a lot for any help.

EDIT: Now I tried again set -1 timeScale, and ooops, the animation is reversed and is NOT disapearing... Now I'm really confused, why it sometimes is possible to reverse ok, and sometimes animation dissapears... Anyone having same or similar trouble?