How to pause a sound?
by John Bura · in Torque X 2D · 07/02/2010 (9:04 pm) · 1 replies
Alright, so Im trying to pause my game, I can successfully pause the game. But the sound keeps going. Im not sure what to do.
Here is how I pause the game.
And here is how I play my sound.
I have tried to go though most of the options for the .SoundGroup, but I can't seem to get one that works. Has anybody successfully paused the sound?
Here is how I pause the game.
Game.Instance.Engine.GameTimeScale = 0f;
And here is how I play my sound.
Game.Instance.SoundGroup.PlaySound("Orange Level");I have tried to go though most of the options for the .SoundGroup, but I can't seem to get one that works. Has anybody successfully paused the sound?
Torque 3D Owner Henry Shilling
Smokin Skull
Assign the cue with your PlaySound
myCue = Game.Instance.SoundGroup.PlaySound("Orange Level");now you can pause etcYou can also use the cue to do positional sound etc.
Lookup Cue, "How to Play a sound example" etc in the VS help.