How do I stop resume sound

Get help using Construct 2

Post » Sat Dec 13, 2014 8:19 pm

How to stop and resume sound?
I need to make ,when mouse on object clicked,blue button, sound play and stop sound,when mouse on object clicked,music button, music play and stop music.
I need to stop and resume both files, sound and music.
Please,check example.capx
You do not have the required permissions to view the files attached to this post.
B
4
S
1
Posts: 27
Reputation: 410

Post » Sat Dec 13, 2014 8:47 pm

Well, there is a pause/resume action for the audio object. It requires a tag (identifier) for the sound, which you set when you spawn the sound.

Also, you want to prevent the sound from being called at all when the sfx is off.

Here, check this capx:

https://www.dropbox.com/s/epjovrvq78wzp ... .capx?dl=0
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Dec 13, 2014 9:07 pm

Than You Very Much for Informative Post!
B
4
S
1
Posts: 27
Reputation: 410


Return to How do I....?

Who is online

Users browsing this forum: Fradno, HellMax, marcinkowski and 12 guests