How do I event music to play based on current layout

Get help using Construct 2

Post » Fri May 12, 2017 6:47 pm

Basically I want music to change based on what layout you are on. Cant seem to find a way so any help will be much appreciated. Thank you 8-)
B
19
S
5
G
1
Posts: 29
Reputation: 1,741

Post » Fri May 12, 2017 7:04 pm

There is an expression 'LayoutName'

System > Compare two values .... 1st >> LayoutName .. 2d a string holding the name of any layout
____ actions ... play the music

Or. If you rename the music files to the same name as the layouts

System > Trigger once while true
___ Action .. Audio > play (by name) ... name = LayoutName
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri May 12, 2017 8:46 pm

Ah thank you very much!
B
19
S
5
G
1
Posts: 29
Reputation: 1,741


Return to How do I....?

Who is online

Users browsing this forum: Fradno, StarrodKirby2, ultrafop and 9 guests