Closed Ozzadar closed 3 years ago
I'm taking a deep think on this now. It's close but the way this is done falls down with:
Hoping to think up a structure that makes sense to do this. Once this is complete, I think the next step is to try to get the entire structure to show up in Godot at least to some degree; or at least referenceable in GDScript ( think sprite.get_node("ChildArmatureSlot").get_armature().play_animation("")
type calls
The thoughts I had above have been fleshed out.
You now access your various components through:
sprite.get_armature().get_slot("gun").get_child_armature().play("fire")
sprite.get_armature().get_slot("gun").get_child_armature().set_display_by_name("greenGun")
etc.. This allows for unlimited armature nesting.
Working on producing builds; if all goes well I can mark this as ready and release builds will be produced when 3.2.3 is released (which I think they want to do ASAP) so I can build on top of it
I'm maintaining a live demo project to test/demonstrate all the features here:
https://mauville-technologies.github.io/godot_dragonbones_tutorial/
This has been built, tested and released: https://www.godotdragonbones.com/godot-dragonbones-3-2
Live Demo has been updated with more stuff as well
New animation event for supporting child armatures:
This was the original design wiki, which no longer applies: https://github.com/mauville-technologies/godot_dragonbones/wiki/Feature:-Nested-Dragonbones-Projects