sizcoz I checked out your example. And I'm starting to get a hang of it. But what I still have a problem to figure out is how can I only spawn one of the related objects?
For example: I have imported 15 different sprites. First I want the array to choose 3 of these 15 sprites and when that is done I want the game to choose 1 of the related items connected to that one specific character. So in this case I want the sprites to be placed in 3 different boxes (cat, horse and dog).
When this is done I want one related item to be spawned in a different box below the 3 other boxes. The saddle for example. When the user sees the saddle they think "oh, this belongs to the horse" and when they press the horse they have finished the level. Is this possible to execute with arrays or have I done it too complicated?