How do I play sound from specific time

Get help using Construct 2

Post » Fri May 12, 2017 8:55 am

is it possible to play sounds from specific time
suppose i have sound of 2 min
on click button 1 play from 30 sec
on click button 2 play from 1 min
on click button 3 play from 1.5 min
i do not want to cut that in 3 pieces
Image
B
64
S
39
G
45
Posts: 651
Reputation: 32,214

Post » Fri May 12, 2017 9:45 am

In the dedicated article for the Audio plugin you can read in the Manual you can find the "Seek to" action which exactly does what you are asking for.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

Post » Sat May 13, 2017 9:36 am

Thank you
I have got it working
But one problem
"seek to" works on Tag
I want to set tag but don't want to play sound at startup

Reason is I have merged all obb sounds with one obb Sound
So i am using "seek to" here
Image
B
64
S
39
G
45
Posts: 651
Reputation: 32,214

Post » Sat May 13, 2017 3:58 pm

I don't see the problem.
If you set your sound to play (play action) and that next action is "seek to", it will then play the sound from the "seeked" time (and so won't play the sound from the startup).
Otherwise you can have the play action and directly after it the pause action, which will then "hold" the sound.

Again, it is all written in the manual.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293


Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, Yahoo [Bot] and 6 guests