Hello gyus!
Shortly: I have object scene - Cursor. Scene store Control - TextureRect with AnimatedTexture with 2 frames. I need to create N instances of that cursor in ONE scene, but if I do that, texture changing in cursor 1 applies on cursor 2 and … cursor N.
How to create Scene (.tscn) correctly as Unique Instance in another scene?
- I’ve tried to deal with local_on_scene flag (maybe incorrectly)
- I’ve tried to duplicate from scene like load(…).instantiate().duplicate()
- I dont try to write full Cursor object programmatically, and this way will be the next if i not find the answer here.
will be grateful for any help!
P.S> Sorry for my bad english!
TestWindow.gd:
TestCursor.tscn:
Result:
And will be greate to understand how creating new object’s work with tscn. THanks!