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
14
S
7
Posts: 20
Reputation: 1,130

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
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Mon Apr 24, 2017 4:48 pm

Is tag playing, do nothing
Else, play audio with "tag"
Image ImageImage
B
169
S
50
G
173
Posts: 8,315
Reputation: 110,274

Post » Fri Apr 28, 2017 1:49 pm

I do not understand?
B
14
S
7
Posts: 20
Reputation: 1,130


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, brunopalermo, kellehk, newt, R0J0hound, ST314 and 26 guests