I'm new to godot.
Is there a way to paper doll in godot?
So if I have a sprite running around, is there a way to layer a helmet over the head without replacing the head?
Thank you in advance :)
I'm new to godot.
Is there a way to paper doll in godot?
So if I have a sprite running around, is there a way to layer a helmet over the head without replacing the head?
Thank you in advance :)
Welcome to the forums @Diego!
Yes, this is entirely possible depending on how your animation is setup.
If your animation is bone-based, where each joint is a separate sprite, then you can assign a Sprite2D to the bone/joint and then change the texture and it's visibility to add/remove equipment without changing the underlying sprite(s).
If you are using frame-by-frame based animation, like in a Sprite Sheet, then this is harder because there isn't a great way to get the position of elements in the animation. You can still do it though, you will just want to make a new Sprite node and have all your animations in an AnimationPlayer node. Then you can manually add keyframes for the position of the Sprite node so it's always positioned over the head of your character. Then you can change the texture and visibility as needed to make the helmet come on/off.
That's a couple ways to do it. Again, it really depends on how the animation is setup, but it is doable.