Audio timescale

0 favourites
  • 4 posts
From the Asset Store
100+ Musical High Quality Sound Effects for your game!
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Extract from the Audio manual entry :

    imescale 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 ?

  • 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.

  • Awesome, now I get it. Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)