MUSIC SCRIPTING (I CANT DO IT)

Started by ty3194, Sun 13/04/2008 06:20:14

Previous topic - Next topic

ty3194

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 :(

Mazoliin

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.

ty3194

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

TwinMoon

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.

SMF spam blocked by CleanTalk