Download

Button hold down to play sound

Hi Guys,

I’m looking for ideas on the best way to play a sound by holding down a button and stopping it on release.

My plan is to have the player hold it until completion which sets the boolean to true… allowing the player to continue with the game.

I’ve tried multiple ways however none seem to work perfetly.

Thanks

If you have an audio component you just use "play"and “stop” on the pressed and released events.