How to add objects to an array

Hi all

What feels like forever, i have been trying to find a way to add an object to an array

When the player starts the game, one type of object will spawn from the beginning, lets call it object A. I tried to set it so that when the player clicks the buy button, object B is added to the array, so now either object A or B will spawn. This is one of my many many attempts:

This calls the custom event

Sorry if this is a mess, its went haywire since ive been trying everything, but this is what i have so far for adding the actual object to the array (stone 1 is in the minerals array, im trying to add stone 2)

1 Like