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
74
S
21
G
9
Posts: 571
Reputation: 14,044

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:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

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
294
S
117
G
96
Posts: 7,310
Reputation: 71,084

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
74
S
21
G
9
Posts: 571
Reputation: 14,044


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests