Audio timescale

Get help using Construct 2

Post » Thu May 31, 2012 6:43 am

Hey guys, I'm new here but I'll skip with the intro and on to the problem at hand.

I set my audio timescale to be enabled on sound effects only.
However, when I implemented my pause function by changing time_scale to 0.
My sound effects is still playing. Anyone have any idea why?
Posts: 11
Reputation: 322

Post » Thu May 31, 2012 8:01 am

Extract from the Audio manual entry :

[quote]Timescale audio
The game timescale can be used to speed up or slow down playback of the game, for effects like slow-motion. See Delta-time and framerate independence for more information. This property controls whether or not audio is affected by the game's timescale.
Off will play back audio the same regardless of the timescale.
On (sounds only) will play back audio from the Sounds project folder at a different rate depending on the timescale, but will always play back audio from the Music project folder at the same rate.
On (sounds and music) will play back all audio at a different rate depending on the timescale.
Some browsers may not support audio timescaling at all; test on multiple browsers to establish support. Also, different browsers may use different time-stretching algortihms for audio. Browsers can either alter pitch, going to lower pitch for lower time scales like a tape machine playing at a different speed; alternatively they can change the playback speed without affecting the pitch. Test on multiple browsers to establish the exact effect achieved.

Are you sure you've setted the property to "on" ?
What is the browser you're testing this in ?
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Posts: 7,427
Reputation: 75,378

Post » Thu May 31, 2012 2:19 pm

Changing the time scale to 0, with audio time scaling enabled, means the sounds are still playing but are stuck playing the same section of the sound continuously. If you want pausing to silence all audio, use the 'Set silent' action.
Scirra Founder
Posts: 25,284
Reputation: 200,852

Post » Tue Jun 05, 2012 10:15 am

Awesome, now I get it. Thanks!
Posts: 11
Reputation: 322

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests