Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How do i Repeat multi sound?
i want to Repeat sound using slidebar,
For example when i touch "Play" then it will play audio "book" 3 time then play audio "pencil" 2 time.
How can i do that?
This is my capx
You need a variable to count how many times it was played.
Every time the sound ends, add 1 to that variable.
If that variable still smaller than the slider value, call it to play again.
i success play audio "book" 3 time , but fail to continue play audio "pencil" 2 time after touch play button
this is my code
Here is what you should do:
i try that code but stuck at code in circle
can you send c3p link :)
Those are the sprites as your:
i follow your code but,the are no gap(stop) play audio between SliderBar_Hat and SliderBar_Sock when press play button.
For example when i touch "Play" then it will play audio "book" 3 time then stop, then continue play audio "pencil" 2 time.
Develop games in your browser. Powerful, performant & highly capable.
Ah, my bad when understand you want to repeat both of them at the same time.
Here is my fix:
There is the file that I updated for you:
Thank u very2 much sir for your help.Work very well.im so happy :)
I got another question
how can i Repeat audio from slidebar A and B,using slidebar C?
For example when
1.i press Button Play,
2."slidebar A will play 3 time" then
3.continue play "slidebar B will play 2 time" then
4.all slidebar A B will repeat 2 time based on slidebar C value.
this is my c3p file
ok. finally i got my code to success.I think it not organized very well
But it work.:)
If anyone want to fix it.im very appreciated.
this is my capx for who want to fix or use
Thank 4 help :)