• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows How to spawn random object.

N

Nindota

Guest
I'm attempting to create an object that will randomly select 1 of 2 objects to change into (Music_1 & Music_2) but I neither know how to start or even how to do this for that matter.

I'm using gamemaker studio 1.
 

obscene

Member
what=choose( something , something else ); // choose what to change into
instance_create ( x, y, what); // change into it
instance_destroy(); // Destroy itself
 
N

Nindota

Guest
It's just playing the windows sound when you're pressing a key with no function (The ding sound).
 
N

Nindota

Guest
Nevermind, I just moved the file to a different location. Thanks for the help!
 
Top