How to make a hold on button?

WeiyuWeiyu Member Posts: 216
edited October 2016 in Working with GS (Mac)

Hello guys, I have a idea but I don't know how to do it.

I want to let music still play , when I hold down the button.
And when button unleash, music will stop.

Maybe just like a shooting game.
When I hold down the button, it will shoot, but when I unleash button, shooting will stop.

Could anyone tell me how to do it. Thank you :)

Comments

  • SocksSocks London, UK.Member Posts: 12,822

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Just switch the Pause Music and Play Music behaviors above. :P

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2016

    @tatiang said:
    Just switch the Pause Music and Play Music behaviors above. :P

    Whoops! :* :)

    Specifically - switch the Pause Music and Play Music behaviours that are inside the Rule.

  • SocksSocks London, UK.Member Posts: 12,822

    @tatiang said:
    Just switch the Pause Music and Play Music behaviors above. :P

    Code fixed . . .

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Lol @Socks... that's great!

    I'm gonna go make a feature request for Masking Tape Behavior Swap. I'll give you credit, of course.

  • haha, socks has too much time on his hands

  • SocksSocks London, UK.Member Posts: 12,822

    @tatiang said:
    Lol @Socks... that's great!

    I'm gonna go make a feature request for Masking Tape Behavior Swap. I'll give you credit, of course.

    B)

  • SocksSocks London, UK.Member Posts: 12,822

    @RossmanBrothersGames said:
    haha, socks has too much time on his hands

    Not just time, but also peanut butter.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Socks, love it!

  • ToqueToque Member Posts: 1,188

    @Socks said:

    @tatiang said:
    Lol @Socks... that's great!

    Wet my pants. Tape. That's classic.

    If your tape is still out, can out tape a search for actor function in creator. Thanks

  • WeiyuWeiyu Member Posts: 216

    @Socks said:

    @tatiang said:
    Just switch the Pause Music and Play Music behaviors above. :P

    Code fixed . . .

    Thank you for your help, and that picture is so cool hahaha. :D

Sign In or Register to comment.