How to make a playlist of songs that work properly without l

Get help using Construct 2

Post » Sun Aug 23, 2015 1:51 am

Hello and welcome, the purpose of this tutorial is to help those who want to use multiple soms on the same project and find difficulties, the fact that an audio when played for some reason keeps repeating indefinitely "loop".
So to begin we need a minimum of two audio files in ogg format. In my case I will show three different sounds.
We start adding audio plugin.
You are in: TWO MOUSE CLICKS on the layout work area.
In the category MEDIA HOICE the plugin called AUDIO.
In PROJECT BAR navigate to the SOUND folder.
Right click on the folder and choose IMPORT SOUNDS.
import the audios you want to use, it is important to note that has already been converted to
OGG format, you can use Audacity utility or other audio conversion program to do this.
Now with the sounds and the audio plugin, go to the programmable logic controller,
Add the following condition 1:
On start of Layout => (and the following action) => Play sound_1.ogg (tagged) "sound_1".
Note: It is important to add the tag, must be the same in action and condition, it is essential to prevent the loop, otherwise there will loop the sound, so the audio will be repeated hundreds of times.
Then add the following condition 2:
On "sound_1" ended => (and the following action) => Play sound_2.ogg (tagged) "sound_2".
Note: It is important to add the second condition is the same tag tag of the first action. this is crucial to prevent the loop, otherwise there will loop the sound, so the audio will be repeated hundreds of times.
For now we want the audio to continue playing then this last condition added:
On "sound_2" ended => (and the following action) => Play sound_1.ogg (tagged) "sound_1".
Note: It is important that you know that the second condition using the action of tag 1 ', and provided 3 using the action of the tag 2 and 3 in action using the action of the tag 1.

If you want to remove the audio, and activate again through a click, do not hesitate to contact me:

*
Image
*
With this, the audio will continue and no loop, and have the option to enable and disable the hearing of sounds.
A tip: you can see how it behaves the sound by click on [DEBUG LAYOUT].
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests