Hi everyone,
I was wondering if there is a way to create an object selected from an array and then delete it from it when it's created to avoid some duplication.
In other words I have this table loaded on an array:
That's planets I want to create in my game. the sprites object are created and they all are in a family named "SpaceMap" with 2 variables: Name (corresponding to the 1 column) and the Set (corresponding to the 2nd column)
To create my planets sprite on the layer, I use a function:
In the end, when the object is created, I delete it from the array.
Seems I'm missing something, but don't get what for now.
Thanks if you can provide some help!!
Depending of the type of Set (A,B,C,D…) I want to create a specific planet. So I used a parameter to my function (SetType)
Seems I'm missing something because it doesn't work.
If anyone can provide some help, it will be great! Thanks!