[C2] Suggestion: Audio Condition

Discussion and feedback on Construct 2

Post » Wed Oct 19, 2011 12:30 am

Hello, Dcrew here!

I would be so happy and greatful if you could add the audio condition: Check if Specific Audio is Playing; this "(tag name)"

To check if a specific audio is playing, and one to check if a Specific audio is playing under a Specific Tag!
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Wed Oct 19, 2011 8:26 pm

Has this been taken into account? Because this is a must-have.. well at least in the games I would like to make.
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Wed Oct 19, 2011 8:36 pm

Can't you just make so whenever an audio is playing, it changes a variable to the tag name (or to anything)?

Then you can check the variable to see which audio is playing?
B
106
S
35
G
36
Posts: 796
Reputation: 24,711

Post » Wed Oct 19, 2011 9:11 pm

[QUOTE=andreyin] Can't you just make so whenever an audio is playing, it changes a variable to the tag name (or to anything)?

Then you can check the variable to see which audio is playing?[/QUOTE]

That isn't the point, I knew I could just do that, But this would improve C2 and make it much better, and even if I did do that.. how would I determine when the sound has stopped? Think (???)?

And when a sound stops itself or doesn't play when called (for some unknown reason), I'd have an event (if this was added) like so:

- If 'music1' is Playing [Inverted] (If 'music1' is not Playing)
+ Then play 'musicconditionswillhelp.ogg' with tag 'music1'
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Wed Oct 19, 2011 10:09 pm

Audio support in browsers is a mess.
Even if I agree this option would be nice, it's likely that the HTML5 implementation itself can't allow for it.

In this condition andreyin's solution is the way to go.

And for the cases of wild stopping or no playing for w/e reason, I'm not sure this could raise an event either (still because of the implementation of audio in browsers).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Oct 19, 2011 10:23 pm

[QUOTE=Kyatric] Audio support in browsers is a mess.
Even if I agree this option would be nice, it's likely that the HTML5 implementation itself can't allow for it.

In this condition andreyin's solution is the way to go.

And for the cases of wild stopping or no playing for w/e reason, I'm not sure this could raise an event either (still because of the implementation of audio in browsers).[/QUOTE]

Oh (speechless conception o.o), You think it'll be supported in the near future? (I hope so)
B
17
S
4
G
5
Posts: 226
Reputation: 4,042


Return to Construct 2 General

Who is online

Users browsing this forum: shinichild and 18 guests