How to allow all sounds to continue playing when paused

Hi guys!

At the moment I am working on an actionish prototype with a friend, and we have implemented hitstop using the built in pause function with the “game paused” text eliminated.

However, this causes the sound in the game to hitch. I know it is possible to get sounds to play during pause using c++ and uisound, but that then disables our ability to use a more conventional pause as well.

Is there a neat way for us to solve this problem?

Can we use the soundclasses system for this?

You don’t need to use C++ to allow sounds to play during pause, just set the Is UISound flag in the Sound Class the sound is using, this is the only means available to allow sounds to continue while paused. If you want to have a conventional pause as well as this effect, I think you would have to create your own pause mode that doesn’t affect sounds, which would require code changes.

You could try using ‘Set Global Time Dilation’ with a value of zero, which doesn’t actually pause the game but makes it move so slowly that it looks like it is. This doesn’t affect the playback of sounds (to be honest I was surprised that it doesn’t pitch them down to make them sound really slow). You then set the time dilation to 1 to return to normal speed.