Music help

Discussion and feedback on Construct 2

Post » Mon Feb 11, 2013 2:02 pm

Is there a way to do the following?

>on start of layout >play music

And is there a way to make music play across all the layouts, not just for one layout?

I looked at tutorials and the manual, but no dice.

B
10
S
4
G
3
Posts: 210
Reputation: 5,273

Post » Mon Feb 11, 2013 8:00 pm

Any help is appreciated :)
B
10
S
4
G
3
Posts: 210
Reputation: 5,273

Post » Mon Feb 11, 2013 10:55 pm

its just like you said it
add an event:
system/on start of layout
and an action
audio/play

if you won't do a 'stop audio' action, it will continue throughout the layouts.
Image
B
59
S
21
G
11
Posts: 480
Reputation: 10,714

Post » Tue Feb 12, 2013 4:49 am

[QUOTE=Lof] its just like you said it
add an event:
system/on start of layout
and an action
audio/play

if you won't do a 'stop audio' action, it will continue throughout the layouts.[/QUOTE]

Music won't play no matter what I do. I tried:

>on start of layout >play music
>on start of layout >preload >play music
>on any click >play music
>on any click >preload >play music
>on object clicked >play music
>on object clicked >preload >play music
>cursor is over object >play music
>cursor is over object >preload >play music

My music files are OGG, less than 10 minutes long, and I tried both the Sound folder and the Music folder. What am I doing wrong?
B
10
S
4
G
3
Posts: 210
Reputation: 5,273

Post » Wed Jun 26, 2013 8:12 pm

Sorry that i "reanimate" these "old" topic, but i also want to know how to play music over more layouts?

Thanks!
B
20
S
5
G
2
Posts: 175
Reputation: 3,462

Post » Sun Sep 22, 2013 10:42 am

Sorry for necro, but I also want to know how to do it. Having the music repeated when layout change kinda ruin the feeling
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Sun Sep 22, 2013 1:56 pm

You just need to add a condition to your event.

On start of layout
If audio tag "whatever" is not playing (done by right-click inverting "is playing")
----------------Play audio
B
90
S
32
G
14
Posts: 935
Reputation: 14,540


Return to Construct 2 General

Who is online

Users browsing this forum: R0J0hound and 9 guests