rainyt / openfl-spine

Supports Spine renderer versions 3.8 to 4.2 on OpenFL
MIT License
18 stars 6 forks source link

Update animation manually #13

Closed CrazyFlasher closed 5 years ago

CrazyFlasher commented 5 years ago

Is it possible to update animations manually? I see there is hardcoded 1/60 update time. So animation playback will depend on fps. I would like animations depend on time. What is the better way to do that?

rainyt commented 5 years ago

https://github.com/rainyt/OpenFLSpine/commit/e4e61eab73d1a001f860a0be1c9c240d0732ee16 I added the process of playing the animation according to the actual time, you can update this to try.

CrazyFlasher commented 5 years ago

Works! Thanks!

rainyt commented 5 years ago

Update to 1.5.4 version.