Game Development Community

Odd Sound Volume Bug(?)

by Harry Durnan · in Torque Game Builder · 11/04/2011 (12:41 pm) · 0 replies

I was trying to get music to play when my game was started, and I was running into an odd issue that it would start playing the track, but the volume would get set to 0.

I put it the alxPlay at the very end of my game.cs startGame(%level) function. I have earlier code to initialize the volume to 1, but when I looked at it.. it would be zero. If I turned up the volume, from some in game controls I added, I could then hear the music.

I managed to work around it by scheduling out the music, by taking the alxPlay and putting it in a new function by itself ,and then putting a schedule(1,0,<function>) at the end of the startGame function... but it seems like a bug that trying to call music without giving the game a second causes it to kill the volume.