How do i Repeat multi sound?
Hello,
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
https://drive.google.com/file/d/1PrqiJTCP4NrxM2mtAUFXG1WuDOv5xCOE/view?usp=sharing
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:
And compare:
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.
where wrong?
https://drive.google.com/file/d/10tzFFZNEe66mvxYTi4ZRz4uRD3UvNaOt/view?usp=sharing
For example when i touch "Play" then it will play audio "book" 3 time then stop, then continue play audio "pencil" 2 time.
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:
dropbox.com/s/k23eqku2temv3mh/audiotest%20%282%29.c3p
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
https://drive.google.com/file/d/17lXExZqInZs6sK5caV6N7xpp5e3pr91F/view?usp=sharing
Develop games in your browser. Powerful, performant & highly capable.
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
https://drive.google.com/file/d/1T6WtNSbCiBdsz-fWDrGKSh74SJuqbelS/view?usp=sharing
Thank 4 help :)