Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ln888 on Fri 23/08/2013 21:08:17

Title: sound effects
Post by: ln888 on Fri 23/08/2013 21:08:17
how do i use sound effects?
PlaySound()  doesn't seems to work
Title: Re: sound effects
Post by: Ryan Timothy B on Fri 23/08/2013 21:17:18
What version of AGS are you using? PlaySound has been obsolete for awhile now.

Check out AudioClip.Play in the manual. With the audio files imported in your project, simply call it like so:
Code (ags) Select
aExplosion.Play();