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
12
S
5
Posts: 17
Reputation: 924

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
88
S
29
G
14
Posts: 1,154
Reputation: 15,003

Post » Mon Apr 24, 2017 4:48 pm

Is tag playing, do nothing
Else, play audio with "tag"
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Fri Apr 28, 2017 1:49 pm

I do not understand?
B
12
S
5
Posts: 17
Reputation: 924


Return to How do I....?

Who is online

Users browsing this forum: DjowG, ramyaswetha and 5 guests

cron