LaDestitute thanks for the advice
@oosyrag I actually want to store all of my objects in the array. But how do i manage all them? Using UID looks like a simple solution for me, but some of those objects have uid from 5000 to 15000.
I was using:
object.x set to array.at(object.uid) to object.x
It works well... kinda.
Since the array is so huge game starts to freeze a little, when player interacts with those objects.
Using IID is not an option. I need something similar to UID but with better performance.
Also could you give me an example to what a placeholder is? (I'll make a guess: it is another sprite, that contains data, so on start of layout i replace "placeholder" with needed object. Right? If yes, thats not what i need)