How to make each time a button is pressed produces sound

Get help using Construct 2

Post » Mon Apr 24, 2017 9:34 am

How to make each time the button is pressed produces sound and in press again the sound continues without going back to the beginning
B
16
S
8
Posts: 22
Reputation: 1,334

Post » Mon Apr 24, 2017 3:49 pm

how long is the actual sound? are the button presses only going to play part of the sound up to a certain point?

you are most likely going to be looking at the Audio object and "pausing" based on Audio.PlaybackTime("Tag")
https://www.scirra.com/manual/109/audio

or you could simply set off a Timer for however long you want the audio to go, and then Audio>Set Paused "tag", then Set Pause again to resume (on Button press).
https://www.scirra.com/manual/167/timer
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Mon Apr 24, 2017 4:48 pm

Is tag playing, do nothing
Else, play audio with "tag"
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Fri Apr 28, 2017 1:49 pm

I do not understand?
B
16
S
8
Posts: 22
Reputation: 1,334


Return to How do I....?

Who is online

Users browsing this forum: kurtbal, Seruza and 10 guests