Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Graviton63 on Sun 01/02/2015 04:12:36

Title: PlayMusic and PlaySound do not work
Post by: Graviton63 on Sun 01/02/2015 04:12:36
I have been using AGS for a while, but I have only now started doing more with it. I have watched the video tutorials and I can not
get the PlaySound and PlayMusic commands to work. They do not even show up on the list when I type. I have the latest version, and a perfectly capable machine for running the program. Any help would be greatly appreciated.
Title: Re: PlayMusic and PlaySound do not work
Post by: monkey0506 on Sun 01/02/2015 05:25:40
I believe the manual should still have the page on upgrading to AGS 3.2, which details the new audio system. PlayMusic and PlaySound have been replaced by the AudioClip.Play function. In the editor you can import your audio files and give them script names, like "aExplosion". Then you can use "aExplosion.Play();" in your script the same way you would have used PlaySound, for example.
Title: Re: PlayMusic and PlaySound do not work
Post by: selmiak on Sun 01/02/2015 13:26:32
Quote from: monkey_05_06 on Sun 01/02/2015 05:25:40
I believe the manual should still have the page on upgrading to AGS 3.2, which details the new audio system.

and/or a link to a relevant wiki page maybe.
Title: Re: PlayMusic and PlaySound do not work
Post by: Graviton63 on Sun 01/02/2015 18:06:24
Thanks. Much appreciated.
Title: Re: PlayMusic and PlaySound do not work
Post by: monkey0506 on Sun 01/02/2015 21:32:17
Now that I have access to it, just wanted to confirm that in the manual the page is right in the root entry, so it should be easy to find. Let us know if you have issues with updating your scripts!

(http://i.imgur.com/tiWROUA.png)