0 votes

so i have this task manager project
every bar has a special number
and this numbers are stored in an array
and i have this system that gives every bar its position

    for x in in_do.size():

    if $bars.get_child(x).get_child(0).node_statu==0 and Input.is_action_pressed("mous_left_click")==false:
        $bars.get_child(x).rect_position.x=$Position2D.global_position.x
        $bars.get_child(x).rect_position.y=$Position2D.global_position.y + in_do[in_do.find(get_child(x).get_child(0))]*80
        print($bars.get_child(x).get_child(0).node_statu

but when i run the project then add some bars then removing some to the white bar they dont re organazed
this is the project (pleas look at it): https://drive.google.com/open?id=1Fkq43rU2pCKGvUfjtSwzXXz40lkbesTi

in Engine by (70 points)
edited by

i updated the project

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.