[HELP] RANDOM SOUNDS [HELP]

Lu_merlinLu_merlin Member Posts: 45
edited November -1 in Working with GS (Mac)
Hello everyone I would like it to be like that that when I press a button a sound plays.
But I don't want it to be the same sound over and over again.
So I figured out that i could randomize a number let's say between 1-20 and then make 20 rules. (If randomnumber = 3 then play sound ...)

Will that work? (and if so how do i do that exactly?)
Is there a better way?
Other possibilities?

Comments

  • Lu_merlinLu_merlin Member Posts: 45
    why game.sound ???

    I need random numbers
  • ORBZORBZ Member Posts: 1,304
    Set game.sound = random(1,20)
  • Lu_merlinLu_merlin Member Posts: 45
    Sorry if i am stupid but what is the attribute game.sound exactly?
  • synthesissynthesis Member Posts: 1,693
    its a custom attribute that you define
    game.sound
    game.monkey
    game.number
    game.whatever

    there is also a game.sound that is actually the sound controller found in the devices menu. This controls the actual volume of sounds in the game.
  • Lu_merlinLu_merlin Member Posts: 45
    that was why it confused my thx
Sign In or Register to comment.