Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spine model twitching when using go.animate #156

Open
mozok opened this issue Jan 12, 2024 · 1 comment
Open

Spine model twitching when using go.animate #156

mozok opened this issue Jan 12, 2024 · 1 comment

Comments

@mozok
Copy link

mozok commented Jan 12, 2024

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).

2024-01-08.15-42-33.mp4

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

2024-01-08.15-42-50.mp4

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
Copy link
Author

mozok commented Mar 19, 2024

Same issue remains with Defold 1.7.0 and Spine 2.14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant