How can I make AnimationSprite2d to behave like a Control node?
When I add AnimationSprite2d to a HBoxContainer it does not scale it according to the size of the sprites frame as it would do if I used a TextureRect for example. Wrapping it inside a Control node also does not help.
You would have to implement all the scaling yourself since AnimatedSprite2D doesn’t have any of the methods of a Control node. If you want an animated texture control node, maybe you can change the texture with AnimationPlayer?
I just tried to change the size of an AnimatedSprite2D by changing the scale values of the parent Control node and it worked perfectly fine. Is this what you are referring to ? …
Have you wrapped AnimationSprite2d into Control Node? And added it to HBoxContainer?
I’m trying to achieve that the AS2d will be aligned in a HBoxContainer based on animation frame size. So it would do all the scaling/aligning itself