How do I get a playing sound's audio tag?

Get help using Construct 2

Post » Mon Oct 06, 2014 7:42 pm

Hello everyone,


Is there a way to get a sounds tag, when its playing?


For example:
Sound with tag "whale" is playing
- set text to "playing sound" tag

if not, then is it possible to get the playing sounds "filename" withought the extension?
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Mon Oct 06, 2014 10:49 pm

Right now im using this:
Audio: Play choose("bird","duck","cat","tiger") from Sounds


How do i make a text object show what file is playing?!

Anyone please?
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Mon Oct 06, 2014 10:56 pm

Store the "choose" into a variable first, then Play it and Show it.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Mon Oct 06, 2014 11:16 pm

I dont get it :/

"choose" is just picking a random audio file, right?


- how would i store the audio filename in a variable?
i have around 185 small audio files.
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Mon Oct 06, 2014 11:22 pm

Nvm i got it! :( doh!

Set global variable to choose (bla, bla, bla)
audio play "global variable"

Thanks blackhornet!
B
37
S
9
G
8
Posts: 541
Reputation: 8,554


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests