![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | DarlesLSF |
Hello, the title says all. Here’s my code:
var inimigo = inimigos.instance()
add_child(inimigo)
How can I change the settings(position, scale, etc) via code?
I tried inimigo.position
or $inimigo.position
, but says “null instance”.
I believe either of the methods you mentioned should work, perhaps something is going wrong when instancing. Are you loading the inigmos
resource correctly?
Athakaspen | 2020-07-27 17:11
Is inimigos
a node in the scene?
Ertain | 2020-07-27 04:26