when button is pressed play random sound?

idoistuffidoistuff Member Posts: 197
edited November -1 in Working with GS (Mac)
so I have actor button and 10 sounds, I would like it so when actor button is pressed play a random sound between 1-10

I know how to do this with 10 different actors, but is it possible to do it WITHOUT making 10 different actors and using spawning?

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Hi idoistuff,

    Some suggestions:

    1. Go watch all these youtube videos: http://www.youtube.com/user/GameSaladCookbook
    they will give you a terriffic foundation in how GS works.

    2. Check out this thread on available demos. download a few, see how they work. That will further your knowledge on how to use GS.
    http://gamesalad.com/forums/topic.php?id=11558

    3. Use the search, every question I've seen you post today has been one people have asked before. But, if you really watch the videos and check out some demos, you could answer every one of them yourself.
  • DimensionGamesDimensionGames PRO Posts: 993
    second jon's point.

    you need 1 attribute and make it random(1,10)

    Then in a actor when rule =1 then play sound 1

    etc.
Sign In or Register to comment.