Can I get the names of all the sprites that are in a group? It means that these sprites are not created.
I want to randomly create a sprite that is in a object group.
But for this I need their names. There can be a very large number of sprites and I do not want to call them “Object 1”, “Object 101” (which would solve the problem), since in my case the names will make sense.
The solution I see now is to create an array with the names.
And when I add a new object to the group, I must add its name to the array as well. But maybe there is some more concise solution that can avoid such duplication?
Unfortunately you cannot, no.
Thanks for the answer.
Arrays work well too)