How to pause a sound?

Get help using Construct 2

Post » Mon Aug 04, 2014 5:16 pm

I've set the "Timescale audio" option in the Audio object to "On (sounds and music)", but for some reason when time scale is 0, the sound still plays at normal speed. If time scale is 0.5, though, the sound plays slower.
This wasn't happening before, when the sound was in the music folder, but I had to move it because I was having problems in mobile browsers, so I need it to stay as a sound and not as music.
Right now I can make it work by setting the time scale to a really low number like 0.000001. Everything stops, but I don't wanna use a cheap workaround like this if there's a way to make it pause and continue exactly from where it left (it's important that it stays in sync)
B
8
S
1
Posts: 53
Reputation: 787

Post » Mon Aug 04, 2014 5:30 pm

You would typically use 'Audio.Set paused' to really pause the sound.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Mon Aug 04, 2014 6:03 pm

Well now I feel stupid. Thanks.
B
8
S
1
Posts: 53
Reputation: 787


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MaxxMunnn and 4 guests