Stop all music playing

Get help using Construct 2

Post » Tue Jun 05, 2012 9:43 pm

I am working on a game that'll have a lot of bg music and I'm wondering if there's a way I can just stop the music playing in the bg altogether without having to make an action block with like 15 stop actions.

for example:
On Character death > stop 'NightTheme'
> stop 'NightTheme2'
> stop 'DayTheme'

since I want this to work across all of the levels, I'd like to know how to just stop the last bg music playing in general.

I hope this makes sense sorry.
and thanks!NotionGames2012-06-05 21:45:33
Image
B
63
S
17
G
8
Posts: 530
Reputation: 12,822

Post » Tue Jun 05, 2012 10:08 pm

Set music silent kills everything
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Jun 05, 2012 10:29 pm

Hmm, you may be able to use toggle states and tags to make this work. Just a hunch, anyway.

http://www.scirra.com/tutorials/158/veryvariable-toggle-between-two-states
Zelda Gamekit (my project)



Example capxs I have made:

Zelda-Style Inventory

Zelda Hearts System
B
44
S
23
G
30
Posts: 510
Reputation: 19,273

Post » Tue Jun 05, 2012 10:34 pm

Just name your background musics on play with the same tag, "bgmusic" for example.
It will only take one action to stop whatever is the music playing.Kyatric2012-06-05 22:35:15
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
269
S
97
G
67
Posts: 7,219
Reputation: 73,864

Post » Tue Jun 05, 2012 10:40 pm

Thanks guys. I'm trying out the tagging all of the bgmusic with the same tag as Kyatric suggested. Thanks!

I'll let you know if I come across any other problems
Image
B
63
S
17
G
8
Posts: 530
Reputation: 12,822


Return to How do I....?

Who is online

Users browsing this forum: bbjGames, jobel, Lordshiva1948, menos30, newt, Turaco, Youtopize and 9 guests