I can't get "Play audio/disable audio" to work with layouts?

Just started using Construct 2? Post your questions here

Post » Fri May 20, 2016 6:17 am

So right now, I have a menu with music and a Level select with music. (2 different tunes!)

They both have different event sheets.

This is how it looks on the menu

Image

This works 100%, everytime I open the menu, I get the sound, both to play and it stops when I go to the next layout it's totally quiet, if I refresh the layout nothing happens. BUT. If I go in Construct 2 and start the layout from there, I get the sound (So it skips the menu layout).

This is how it looks in the level select layout.

Image


How come this don't work when I switch layouts from Menu to Level select ?

Do I need to use the same event sheet for this task?

-----------------------------------------

Gonna add some extra info here as I just found out.

I get it to work if I use the SAME song (Like "menu" "menu")

this is pretty wierd


-----------------------------------------

Another edit:

Seems like it knows there is a song there, but it dosent load it or something?
Image

-----------------------------------------

Another one (I feel like Dj Khaled)

If I would play "Level" in start menu it works in "Level Select" aswell

So aslong as I use the same music in different layouts, it works, But I cannot use 2 different?

-----------------------------------------

Another one.

I now imported a third .ogg (different)

If I use the new music in menu, the sound changes in level select.

but if I use the original it does not.
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Fri May 20, 2016 6:42 am

Solved:

If anyone else have this problem aswell in future and searching and finding this.

I used

"System -> On start of layout (This is on the first layout, menu) -> Audio -> Preload "your music"
B
21
S
9
G
8
Posts: 188
Reputation: 6,069


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests