and heres print
As the last warning recommends try using add_sibling.call_deferred(character), also make sure that string format matches where your control resources are located.
but it now load players
This set of errors tells you the string format is incorrect
You must have something along the lines of this :
var res: Resource = load("res://assets/Scenes/Characters/P%Controls.tres" % (player_index + 1))
But the % sign doesn’t act alone, you must specify you are giving it a digit by using %d
var res: Resource = load("res://assets/Scenes/Characters/P%dControls.tres" % (player_index + 1))
1 Like
alright tysm for helping me through this, they work now selection works perfectly fine
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

