Question/s about sound

dondan89dondan89 Member Posts: 150
edited November -1 in Working with GS (Mac)
Hello,

I have an button. I know how to set it to play the sound when touched, but how can I make it that when I hold the button it keeps playing the sound over and over again and stops when stop holding the touch button?

thank you

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you could throw the play sound behavior in a timer.

    so when touch is pressed
    -every whatever amount of seconds
    --play sound
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, yet another way:

    simply: With Rule, when touch is pressed, play sound

    Providing the Run to completion in the Play sound behavior is unchecked, the sound will stop playing with touch released.

    For music: Rule, when touch is pressed, Play Music
    Otherwise
    Stop Music

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • dondan89dondan89 Member Posts: 150
    Thanks it works now
Sign In or Register to comment.