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

Bones game object mappings are lost when a state machine is running #141

Open
totebo opened this issue Dec 18, 2024 · 2 comments
Open

Bones game object mappings are lost when a state machine is running #141

totebo opened this issue Dec 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@totebo
Copy link

totebo commented Dec 18, 2024

Using rive.get_go() works on a Rive model only when no state machine is running. Once the state machine is started, two things happen:

  1. Any game objects that were attached to bones lose their parent and are repositioned within the scene.
  2. Using rive.get_go() now crashes, or returns ERROR:SCRIPT: main/main.script:19: the bone 'left_hand' could not be found.

Minimal project (including .rev file so the scene can be opened in Rive):
BoneToGameobject.zip

--

Rive extension 3.6.0
Defold 1.9.6
macOS 14.6.1 (Sonoma)

@totebo
Copy link
Author

totebo commented Dec 18, 2024

Video below. Expected behaviour is that the food stays attached to the left hand bone.

Once the state machine starts, the fruit gets removed for some reason.

lunch.mov

@totebo
Copy link
Author

totebo commented Dec 20, 2024

After a bit of more digging, it looks like all bones move to 0,0 (top left) of the art board when the state machine starts.

@britzl britzl added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants