I’m making a game where i use maps to store numbers and actors. The numbers however must be in order for the game to work (but not including every number). For example:
1 - actor
5 - actor
8 - actor
Would work but
1 - actor
8 - actor
5 - actor
Would not. Is this bad? Is there any risk of my maps getting reordered if I always set them up in order? Is there a way to reorder them?
I fill the map by reading of components of the actor so the order of them matches the order of the components of the actor. Once the map is set, theres no chance of it getting messed up right?