![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Fenisto |
Hello. I want to create multiple labels in code, kind of like names for items in an inventory.
I do it kind of like this:
var debug = Label.new()
for i in 10:
debug.rect_position = Vector2(50,100) * i
debug.text = i
add_child(debug)
But this creates only one label.