Game Development Community

Playing audio files

by Richard Skala · in Torque Game Builder · 12/11/2009 (5:25 pm) · 1 replies

How do you play sounds and audio files in TGB? Is there a tutorial somewhere? I haven't seen any documentation on playing sounds.

Thanks.

#1
12/11/2009 (7:29 pm)
There are a few articles on TDN. Section 8 of the asteroids tutorial covers adding audio files to that example game. There's also a music tutorial in the archive section - it's archived mainly because the fish demo is no longer included as a pre-installed example in TGB 1.7.4. If you read through it though, it should give you an idea of how audio datablocks and the alxPlay function work.

tdn.garagegames.com/wiki/TGB/ScriptTutorials/MusicTutorial
tdn.garagegames.com/wiki/TGB/Tutorials/Asteroids/Section8