GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Multiple Music & Button State Issues

ctwllcctwllc Posts: 19Member, PRO

OK. So here's what I'm wanting to do...

2 rows each with 4 buttons. Each button has an up and down state. When the button is pressed it plays a looped audio file and also goes to the down state. If another button in that row is pressed, the first audio loop should stop and the the first button should go to up state while new button audio loop starts and button moves to down state. Each row of 4 buttons can only have 1 button playing at a time, but it should be possible for row 1 to play a loop at the same time a loop from row 2 is playing.

Thanks in advance.

Comments

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

    What does 'up state' and 'down state' mean ?

  • ctwllcctwllc Posts: 19Member, PRO

    @Socks basically, when the button hasn't been pushed it's in the 'up state' and when it has been pressed it switches to the 'down state' - so, not pressed in, then pressed in... two images.

  • SocksSocks London, UK.Posts: 12,822Member
    edited March 2015

    @jwhedon said:
    Socks basically, when the button hasn't been pushed it's in the 'up state' and when it has been pressed it switches to the 'down state' - so, not pressed in, then pressed in... two images.

    I see, you want the image on the button to change, that makes sense, it's probably best just to use plain English for these sorts of things, wanting something to enter an 'up state' could mean just about anything (I actually thought it might be an attribute that gets switched on or off). Attached is a quick example file.

  • ctwllcctwllc Posts: 19Member, PRO

    Awesome... thanks so much.

  • RThurmanRThurman Posts: 2,827Member, Sous Chef, PRO

    Here is a file that shows one way to do radio buttons.

  • ctwllcctwllc Posts: 19Member, PRO

    Thanks @RThurman

Sign In or Register to comment.