Can't seem to get a duplicated resource to display

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By grymjack

I can’t seem to get a duplicated image resource to display. In the code below, when I change all the ‘my_copy’ to ‘gasgiant1’, the resource displays fine. What am I doing wrong? Thanks

var my_copy = gasgiant1.duplicate()
my_copy.visible = true
my_copy.rect_scale = Vector2(.5,.5)
:bust_in_silhouette: Reply From: Gluon

Try adding the line


Thanks. That did it, that line was not in any of the examples I saw.

grymjack | 2022-12-17 21:07

Very glad I could help, good luck with your game.

Gluon | 2022-12-17 22:28