[plugin] fade in/fade out audio

Post your work in progress addons and get feedback

Post » Sun Sep 11, 2016 5:49 pm

Fade in not working since I updated latest NW.JS.
B
22
S
9
G
9
Posts: 38
Reputation: 6,128

Post » Sun Sep 11, 2016 11:02 pm

@shinichild

Tested by the latest nwjs (r0.17) ( sample capx ) , it worked.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Wed Sep 14, 2016 4:50 pm

I had a similar bug recently after updating to Construct r233.

The fade in/out didn't work and caused the others actions below it to crash. I reverted to r227 and it works fine. If I remember correctly, the editor opened a popup talking about a Javascript error.

I'll try to check it out if I have time to come up with the precise error log.
B
4
S
1
Posts: 7
Reputation: 364

Post » Wed Nov 16, 2016 9:30 pm

rexrainbow wrote:@shinichild

Tested by the latest nwjs (r0.17) ( sample capx ) , it worked.


Hi rexrainbow, please can you check this:

seems to be a bug...

if you change the fade-in time value from 1 to 0 (basically no fade)

http://i.imgur.com/QeXgSHM.jpg

a popup opens with this javascript error

chrome
Image

edge
Image

firefox
Image

A value of 0.1 or 0.01 can avoid the error... but what if i want completely no fade (0)?
(time ago was possible to put 0 value)

Can this error be fixed?

Thanks in advance
Last edited by Aelfraed on Wed Nov 16, 2016 9:48 pm, edited 1 time in total.
B
22
S
2
G
4
Posts: 30
Reputation: 3,602

Post » Thu Nov 17, 2016 12:24 am

@Aelfraed

Fixed, thanks for this reporting. Please download this plugin again,
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Nov 17, 2016 2:31 am

rexrainbow wrote:@Aelfraed

Fixed, thanks for this reporting. Please download this plugin again,


Perfect, it works like a charm! Thanks a lot for this fix! ;)
B
22
S
2
G
4
Posts: 30
Reputation: 3,602

Post » Tue Apr 25, 2017 4:08 pm

I'm having trouble with the "stop" event.
I use it to try to stop the sound using the track's tag. However it doesn't actually stop it just goes quiet. Is this meant to happen? And can I stop the track another way?

Another question I have is- if sound "forest" is stopping, and the game plays sound under tag "forest", does the new sound get caught in the fade out too?

I'm working on blending tiles together so they dont apprubtly change including the same audio file restarts.

Thanks :)
- Head of Tall Story Studios.

Creator of GOV, Project Abyss, Spiritlands & more!
B
27
S
12
G
2
Posts: 129
Reputation: 3,169

Post » Thu Apr 27, 2017 9:51 am

@Kenthria

I did not have that issue. You might check "Current playing" field in official audio object, in debug panel. It was "0 playing" after "stop with fade-out".
Could you please provide a very simple capx to reproduce that issue?

This fade-in/fade-out audio plugin will invoke actions of official audio object. Therefore user could fade-in/fade-out in events, too.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Wed May 10, 2017 2:32 pm

Hi @rexrainbow ! I love this plugin, thanks for making it!
However I had to stop using it because I have huge problems with tracks with a specific tag not playing anymore (at all) after being stopped with a fade out.
I'm probably doing something wrong here, so I made a small capx to show you the problems I have. You may have a simple solution to avoid that.

Here is an image of the capx's code. Event sheet 2 is the same with swapping music 1 for music 2 and vice-versa, and Layout 2 for Layout 1.
Image
I had the problem on both a version of the plugin I downloaded 1 year ago, and the latest version I downloaded today.
Thanks in advance for any help you could provide. :)
B
33
S
6
G
1
Posts: 355
Reputation: 2,850

Post » Mon May 15, 2017 2:56 pm

Update

1. Set initial value of property "Audio effect" to "No".
2. Remove audio effect when play sound


@Rable

It might have 3 possible solutions.
1. set property "Audio effect" to "No" to fade out sound by setting volume every tick without using audio effect.
or 2. add action: remove all audio effect (official audio object) before playing audio by official audio object if "Audio effect" is set to "Yes".
or 3. uses action play of audio helper object to play sound, it will remove audio effect in that action, in the latest version.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 2 guests