Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | YAGU |
I create a Panel at runtime using this code:
var tempPanel = Panel.new()
add_child(tempPanel)
then i want to change the position of the Panel. I tried this:
tempPanel.position = Vector2(x, y) # Where x and y are forloop variables.
But then i get this error:
Invalid set index ‘position’ (on base: ‘Panel’) with value of type ‘Vector2’
Maybe you could help me with this?