How do I Use Scheduled Play and Duration for Music

Get help using Construct 2

Post » Wed Apr 05, 2017 12:46 pm

I have two files, one is the intro of a song and the other is the loop. I tried to use scheduled play with the intro's duration to make the loop play seamlessly as soon as the intro is finished, but apparently neither of those work with music files, specifically the duration expression returns NaN. Are there other options I have?
B
45
S
13
G
1
Posts: 236
Reputation: 4,010

Post » Thu Apr 06, 2017 2:34 pm

Should work. There is an audio scheduling example in the new projects dialogue you can refer to.

Otherwise upload an example of what your have done so we can check it.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Apr 06, 2017 3:29 pm

It doesn't seem to work when the audio file is in the music folder. I tried getting it duration while it was playing and just kept getting NaN. At any rate, I disabled preloading all sounds on startup and put the music all in the sounds folder and that seems to have fixed it.
B
45
S
13
G
1
Posts: 236
Reputation: 4,010


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, namaewayukidesu and 6 guests