Game Development Community

Problems with sound effects

by Raul Martinez · in Torque Game Builder · 06/28/2012 (8:30 am) · 1 replies

Hello

I have a problem with assigning sounds in my game, for example I want a sound to be heard when I hit the fire button, I created the sound description file and assigned the sound to a variable and use the alxPlay(name of the sound file) but when I press the fire key nothing is heard, also when I tried to use backgroundmusic the screen just froze.
Is there a tutorial on how to use music and sound effects?

Tjank you in advance
Greetings from México

#1
06/30/2012 (1:13 pm)
There is the tutorial on sound that comes with the engine. However, there is a bug in naming the sound file. I'm recalling from memory here, but basically the tutorial has the sound files named "./game/..." and you need to take off the first part, like "game/...".

When the path is wrong, you do not currently get any feedback from the engine.