M
mjmiller1824
Guest
So I have a global.y, an array of global.x, and an array of objects that exist within the game scope. I'm trying to set an alarm that spawns one random object from the array every 1.25 seconds and sends it in a random direction. The motion is set in each object. So instance_create(global.spawnX[irandom_range(0,5)],global.spawnY,global.types[irandom_range(0,4)]); can call the new object. How can I call this from a room with an alarm? Or other way of doing a timer? So that one random object in the types array is called at a position in the global.spawnX array, at globalSpawnY. I'm just having trouble with the timing. Any options would be appreciated.