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
60
S
16
G
7
Posts: 504
Reputation: 12,050

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
40
S
20
G
30
Posts: 487
Reputation: 18,829

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
262
S
93
G
54
Posts: 7,144
Reputation: 66,557

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
60
S
16
G
7
Posts: 504
Reputation: 12,050


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests