Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ty3194 on Sun 13/04/2008 06:20:14

Title: MUSIC SCRIPTING (I CANT DO IT)
Post by: ty3194 on Sun 13/04/2008 06:20:14
i want to put music in my game but im terrible at scripting and i need to know how to put the music in the scripting and where to put it in :(
Title: Re: MUSIC SCRIPTING (I CANT DO IT)
Post by: Mazoliin on Sun 13/04/2008 09:22:40
In the Room Editor - Settings, there's a check box "Play music on room load", check this and enter the music number in the box at the right of the text. This will play the music when the room loads.

However, if you want to play the music after a sertain event, you have to use the PlayMusic(X) command.
Title: Re: MUSIC SCRIPTING (I CANT DO IT)
Post by: ty3194 on Sun 13/04/2008 20:35:42
i put a music file in the AGS music folder and named it "0" and i set the PlayMusicOnRoomLoad to "0" like the name of the file and and tested the game but it didn't play
Title: Re: MUSIC SCRIPTING (I CANT DO IT)
Post by: TwinMoon on Sun 13/04/2008 20:57:51
Try "music0.ogg", "music0.mp3" or "music0.wav" (depending on your format of choice)

Or better yet, try music1.* since music0 is reserved for intro music - it will play right at the start of your game.