How can I fade sound to transition into a new layout?

Just started using Construct 2? Post your questions here

Post » Sun Apr 23, 2017 7:43 pm

I am playing this tune on INTRO screen and would like to OnTouchedObject to transition into new Layout but smoothly fading sound out.

Help, please!
B
19
S
4
G
2
Posts: 97
Reputation: 2,244

Post » Sun Apr 23, 2017 7:51 pm

You can set the volume (set volume) depending of a tagged sound depending on your needs (e.g in a loop - depends on your layout switch).
The value is db (e.g. -10 is half the original volume, see documentation)
Image Image Image
B
43
S
22
G
15
Posts: 383
Reputation: 12,262

Post » Sun Apr 23, 2017 10:13 pm

mercuryus wrote:You can set the volume (set volume) depending of a tagged sound depending on your needs (e.g in a loop - depends on your layout switch).
The value is db (e.g. -10 is half the original volume, see documentation)



Thank you but that does not fade out volume, it abruptedly turns it down. But thanks anyhow.
B
19
S
4
G
2
Posts: 97
Reputation: 2,244

Post » Mon Apr 24, 2017 4:06 am

kiko2015 wrote:
mercuryus wrote:You can set the volume (set volume) depending of a tagged sound depending on your needs (e.g in a loop - depends on your layout switch).
The value is db (e.g. -10 is half the original volume, see documentation)



Thank you but that does not fade out volume, it abruptedly turns it down. But thanks anyhow.



You have used a for or while loop?
You need to use the game cycle and a state maschine.

excample: http://www.gameus.de/c2/fadeout.capx
Image Image Image
B
43
S
22
G
15
Posts: 383
Reputation: 12,262

Post » Mon Apr 24, 2017 11:48 pm

mercuryus wrote:
kiko2015 wrote:
mercuryus wrote:You can set the volume (set volume) depending of a tagged sound depending on your needs (e.g in a loop - depends on your layout switch).
The value is db (e.g. -10 is half the original volume, see documentation)



Thank you but that does not fade out volume, it abruptedly turns it down. But thanks anyhow.



You have used a for or while loop?
You need to use the game cycle and a state maschine.

excample: http://www.gameus.de/c2/fadeout.capx


THANK YOU SO MUCH!!!
B
19
S
4
G
2
Posts: 97
Reputation: 2,244


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests