defold / extension-spine

The Defold specific Spine runtime implementation
Other
33 stars 14 forks source link

Spine model twitching when using go.animate #156

Open mozok opened 8 months ago

mozok commented 8 months ago

Hi. I have an issue moving object by using go.animate, if object contain children with spine (spineboy) and sprite (red aim) components. spine-root

If I move root object It looks like spine model is lag behind in frame or two (first video).

https://github.com/defold/extension-spine/assets/3275098/05eaa1ba-397b-4112-9496-c988ffb95f29

Second video - I've focused camera on root object. One can see how model twitch left, while aim sprite remains in place.

https://github.com/defold/extension-spine/assets/3275098/ca186268-7225-43ef-9b6c-73abdb79518f

Move is just a simple: go.animate(".", "position", go.PLAYBACK_ONCE_FORWARD, pos, go.EASING_LINEAR, 0.12)

Attaching test project archive. There I've also tried to animate using update and dt. All is ok in that case. spine-animation.zip

Versions: Defold 1.6.2. Spine-extension 2.13.0. Spine model from official example https://github.com/defold/examples/tree/master/assets/spineboy

Steps to reproduce:

  1. Create collection with root object.
  2. Add child object with Spine model to root object.
  3. Add child object with Sprite to root object.
  4. Use go.animate to move root object.

Expected result: Spine model and Sprite moves simultaneously.

Actual result: Spine model lags behind Sprite.

mozok commented 5 months ago

Same issue remains with Defold 1.7.0 and Spine 2.14.5