Need help with stopping sound from overlapping

Hi, so I'm trying to make this app where there are multiple buttons that are linked to different sounds (ex: button one is a meow and button two is a bark). But when I press some of them at the same time they are overlapping, how can I stop this?

Use the Player component instead of the Sound component, because it has a completion event.

When a button for a sound has been pressed, call a procedure that disables all the sound buttons.

When the Player completion event fires, re-enable all the buttons.

1 Like

Do you think you could send me a picture of how the code should look like?

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.



Use only one Player / Sound component and only change the source.

Note: The Sound component is only for short audio tracks (4-5 sec).


You are missing something.
When do the buttons get re-enabled?

just forgot to include it