Music doesn´t stop

Get help using Construct 2

Post » Tue Feb 19, 2013 12:55 pm

Hey guys, i´ve got another problem.

My menu is splitted into 2 layouts, which both shouldn´t interrupt the funky-menu song, starting on start of layout1 :)

I could handle the problem of re and restarting again, switching between menu1 and menu2, using a variable but how the **** do i let it stop?

I want the song to stop on clicking the start game button, but it doesn´t work, neither as a music nor as a sound file.



Please help me :)

sry for the bad english, but i try my best:)
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Tue Feb 19, 2013 1:09 pm

If it is under sound and you are using an audio file you could use this event:

On Mouse click object(button to start game) ---> Audio stop ("music")
B
7
S
2
Posts: 18
Reputation: 891

Post » Tue Feb 19, 2013 1:45 pm

if you would have clicked my picture you would have noticed, that that is what i´m already trying ;-)

it doesn´t work!

btw. the name of the file is correct:)
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Tue Feb 19, 2013 3:02 pm

The Stop command uses a Tag, not a Name. Set the tag on the Play command then Stop with the same tag. Tags let you use generic names, regardless of the actual file name, so you can change the file if you need, but as long as you use the same tag, all of the other actions don't need to be edited.
ImageImageImage
B
67
S
19
G
121
Posts: 3,200
Reputation: 72,887

Post » Tue Feb 19, 2013 4:58 pm

Thanks blackhornet,that was the solution :)now it works!

and thanks very much for the tip with the changeable sounds :) pretty handy as well

have a good one!
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886


Return to How do I....?

Who is online

Users browsing this forum: Aphrodite, Yahoo [Bot] and 20 guests