The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

Containers are great keeping things ordered, and its fairly easy to add_child() or move_child() but when a new child is added it instantly appears. Is there a way to use Tweens to animate the position of all existing children whenever a new child enters?

I've tried adjusting rectposition and rectglobal_position on both the children and container but it doesn't appear to move anything. Specifically trying to change HBox & VBox containers with ColorRect nodes inside them (like an energy bar in FTL).

Any ideas?

Godot version 3.5
in Engine by (27 points)

Found this reddit post which says to create your own control class that handles its children, but thought that kinda defeats the purpose of containers if they're only good for static children. Was hoping there might be a solution to this in the past 3 years?

Nope, I don't think so. They're still only good for static children.

Was looking for exact same thing - with expectation "it's got to be easy..."; at least I know I need to figure out something different.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.