Play sound when mouse clicked

ok when mouse clicked i want it to play a sound i made give me an examle code

Hi @Jesse_Gagne! The tutorial page below explains how to make this. Unfortunately, the corresponding project is no longer available because it is outdated. Hopefully the project will be updated and added to the page soon by the PlayCanvas team.

https://developer.playcanvas.com/en/tutorials/basic-audio/

I have found the available project where you can use the scripts from.

https://playcanvas.com/project/405821/overview/tutorial-basic-audio

1 Like