0 votes

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 (18 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.

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 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 webmaster@godotengine.org with your username.