How do I fix my sound

Get help using Construct 2

Post » Tue Feb 17, 2015 9:07 pm

I am having an issue with my back ground music. Right now I have two songs.

I am trying to get the songs to activate when the Idle Sprite overlays this Huge sprite that covers the level...

Issue 1:
when the level starts the background music doesnt play.

Issue 2:
when idle is outside of layout the "level music" group is suppose to deactivate and then reactivate once
the layout starts....well the issue is when i fall outside of layout the music plays, cool great but when i fall again the move plays twice, like overlapping itself and then i fall out again, it tripple overlaps itself..

issue 3:
when i hit Enter to pause the game, the sound is suppose to pause as well but it doesnt.
https://www.dropbox.com/s/5o34p1p603qdx ... .capx?dl=0

focus-event sheet 1 code
lines
1-3-184-382
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Tue Feb 17, 2015 10:16 pm

You seem to be turning sound on and off by enabling/disabling the LevelMusic group. This does not actually start and stop the sound, it just stops events related to it. In this case, the LevelMusic group does not get enabled until the level has already started, which prevents event 385 from triggering. When the level restarts, 385 triggers again, because LevelMusic is already enabled, but you never did anything to stop the music, so when 385 triggers again it just plays over top of the already playing music.

You need to actually Audio.pause or Audio.stop your music when falling off the screen or pausing. Remember that this is done by tag, not by name, so you need to tag the music when it starts.
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Wed Feb 18, 2015 4:07 am

thanks for the response, ill read that a few times over.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Wed Feb 18, 2015 3:56 pm

I got it to work, thanks for the help.
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests