How to play Button Sound Effect Audio when changing the Scene(Storyboard)

Hi All,

I would like to know how to play Audio (Button Sound Effect Audio) when changing the Scene.

Let say I have a button called “Back to Main Menu” in a Game Scene.When I click on it,the Button Click Sound effect  audio need to be played then changing to Main Menu Scene.

But I am not able to play the Button Click Sound Effect audio before changing the scene.Is it possible to play sound effect audio and changing the scene at the same time?

Best Regards,

John

Yes it’s possible can you write your code here with the fonction

(between them).

In ressources and sample code you have the easy solution ! But put your code if you want, i think i can help you.

Hi kevin.empociello ,

I put my code inside the space that you provide for me.I also want to assign Button Sound Effect to Channel 1 and Background Music to Channel 0. 

I appreciate your assistance.

Best Regards,

John

Yes it’s possible can you write your code here with the fonction

(between them).

In ressources and sample code you have the easy solution ! But put your code if you want, i think i can help you.

Hi kevin.empociello ,

I put my code inside the space that you provide for me.I also want to assign Button Sound Effect to Channel 1 and Background Music to Channel 0. 

I appreciate your assistance.

Best Regards,

John