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.

godotengine.org | Twitter

0 votes

I'm working on a scene that has some labels and separators inside of a HBoxContainer and then the container's position animates from left to right on screen. The behavior is similar to how a news ticker runs. One of the ideas I had to calculate the size of the ticker is to use the "resized" signal on the container to determine when the HBoxContainer changes size. Presumably from the adding/removing labels and separators from the container.

However, when I use the "resized" signal combined with the set_pos calls I'm making for animation, the signal seems to be firing on each process loop. Is there a better way to determine when the container has changed size?

in Engine by (18 points)

I also want to bring up that this issue is happening when using Tweens as well for animation.

I'm not sure how to wait until all my items have caused my hboxcontainer to resize and then start animating. Any thoughts?

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.