Closed Trass3r closed 1 year ago
What is the status of this? I didn't try the code yet, do the different animation modes still work?
So far I couldn't spot any regressions. But please feel free to test it yourself.
On 3.6 jME there will be native tweens for the deprecated loop modes. So lets look at this then.
Would we need to use AnimLayer then? https://github.com/jMonkeyEngine/jmonkeyengine/pull/1845
Hmm, not sure, it was this PR https://github.com/jMonkeyEngine/jmonkeyengine/pull/1849/files.
Some enhancement to new animation system by @Ali-RS in https://github.com/jMonkeyEngine/jmonkeyengine/pull/1845
Added a Loop tween to Tweens factory class. Supports looping by count… by @Ali-RS in https://github.com/jMonkeyEngine/jmonkeyengine/pull/1846
Added Tweens.cycle() and Tweens.invert() methods by @Ali-RS in https://github.com/jMonkeyEngine/jmonkeyengine/pull/1849
Yeah, I finally got around to test this. It seems to work.
I tried to use the Tween.cycle in the AnimationLoader rather than tamper with the Global Animation Speed. But that resulted in doors spawning as opened. Well, need to check this at some point.
So yes, fine by me. Ready to merge?
Found this old #362 branch and rebased fwiw.