0 votes

im using hBoxContainer for a carousel mech.
when im calling custome "swipe" function that i wrote, im using move_child to move the first control to be the last.
according to the scene tree the control's position in the array has changed correctly,yet its position remains the same.
i tried to use yield nad hide/show for a sec and it worked out,but i wonder if it is a problem or is there another elegant way?
by the way, when i add to a pre-built list, another control,it sticks to the begging of the hbox as well, and not been placed as last(in terms of position, not tree order,which is fine).

in Engine by (14 points)

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.