Advanced Audio Fade Driver (Game Templates)

Discuss Scirra's 2D Asset Store

Post » Fri Apr 22, 2016 2:15 pm

Advanced Audio Fade Driver — Now for sale in the Scirra Store!


The Advanced Audio Fade Driver is a template that contains function code and objects that can be exported into your game projects. With this template and fully-commented code, you can fade audio in and out, and crossfade between two tracks. The value of these audio fades lies in the ability to create smooth audio transitions that sound natural to the gamer's ear.

With the AAFD, you can take advantage of three different but standard types of fade effects: linear and taper (two different taper effects, one for sudden volume decrease and the other more gradual).

Features include

  • Fade an audio track by tag either up or down in volume, optionally stopping the sound or allowing it to play at a reduced or increased volume
  • The ability to combine fade in and fade out in order to cross-fade two different audio tracks
  • Three types of mathematical fades that affect how the volume changes over time

Please note

This template uses a few objects that must be either be located by name or exported from the CapX template into your project. The arrays contain data used in over-time functions and must be located by name and have the same exact default properties.

For example purposes, button objects are used to show how events may call the fade function.

Use this topic to leave comments, ask questions and talk about Advanced Audio Fade Driver
Posts: 633
Reputation: 30,886

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 0 guests