How to set tag to song that isn't playing?

Get help using Construct 2

Post » Wed May 10, 2017 6:36 pm

Hello,
Is there a way how to set the tag to the song that hasn't been played yet ?
I want to detect random choosed song. But I can´t set the tag in choose command beacause it will set the tag to all songs.
PICTURE: https://www.dropbox.com/s/zxm69peq0ywg071/
audio%20tag.PNG?dl=0

Thanks for reply :)
B
4
Posts: 19
Reputation: 236

Post » Thu May 11, 2017 12:46 pm

Add a global variable 'GodIsaDJ' (text)

Make a empty sub event under event 1

Now, in that empty sub event make an action that sets 'GodIsaDJ' to the choose expression that you have in place.
In the second action you can Play (by name) with name = 'GodIsaDJ' and tag = 'GodIsaDJ'

Event 2 i dont understand. You can keep it as it is, if there is only 1 animation to play. Just dont have that animation in loop.

If there are as many animations as songs. May i suggest to name the animations the same as the song.
Now event 2 will be ....

Is tag playing ('GodIsaDJ')
_____ set animations to 'GodIsaDJ' (dont have that animation in loop)

Audio should have an Audio.tag expression to go with 'Is any playing'. But it does not.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu May 11, 2017 3:16 pm

Thanks.
Event 2 do random choice of songs
B
4
Posts: 19
Reputation: 236


Return to How do I....?

Who is online

Users browsing this forum: David181 and 22 guests