|
There should be several ways of doing that.
I'm telling you one of them.
| CODE | variable = 0 //Name this variable as you like. variable = ceil(random(4)) //variable's value will get random, the max it can be is 4. if variable = 1 sound_play(sound1) //name sound1 as the name of the Link attack sound. if variable = 2 sound_play(sound2) if variable = 3 sound_play(sound3) if variable = 4 sound_play(sound4)
|
This doesn't include any really advanced coding. Don't forget to change the variable name and the sounds' names.
PS: I just wrote this from scratch, not sure if it'll work, but it should do so.
--------------------
V-Ware - WarioWare-styled minigame with 20 microgames, achievements, built in online highscore lists and more! Check it out.
|