spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Other Features

Music and sound

All good games use sound to involve and immerse the player in the game. AGS allows you to play a background music track, and also to play sound effects at appropriate times.

For background music, AGS can use OGG, MP3, MIDI, WAV (uncompressed), MOD, XM, IT and S3M music files. For sound effects, you can use OGG, MP3, WAV and VOC files.

When AGS needs to play music number X, it will search for the files in the "Music" sub-folder of the game, in the following order. The first file it finds, it plays: MUSICx.OGG, MUSICx.MP3, MUSICx.WAV, MUSICx,MID, MUSICx.MOD, MUSICx.XM, MUSICx.S3M, MUSICx.IT

TIP: What is ogg? OGG is a digital music format, similar to MP3, but achieving better compression and higher quality. More importantly, it is a totally free format so no royalty payments or licenses are required to use it. For more information and programs to encode your music to OGG, see http://www.vorbis.org/

When the game loads, music 0 will be played if it exists in the "Music" directory. You can change the music later by setting "Play music on room load" in a room, by using the PlayMusic script command.

To play a sound effect during the game, you can use the PlaySound script command. The game will search for SOUNDx.OGG, SOUNDx.MP3, SOUNDx.WAV and SOUNDx.VOC, where X is the sound number.

NOTE: WAV, MP3 and OGG music files are not included in the game EXE, but are instead bundled into a separate file called MUSIC.VOX. This means that you can make it an optional download if you wish; the game will fall back onto MIDI versions of the music if this file is not present.

In this section:

Voice speech


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.