well, I know this is old, but I spent the last two days trying to accomplish this. Here is my experience so far:
The idea is simple, at some point, past a certain Y coordinate over the layout, the initial track fades out, then the second one fades in, being louder as you go further down the layout.
I tried the following things:
- a combination of play/stop and pause resume, if "Tag" playing/not playing, as well as play/stop only sequentially. With the official Audio plugin only.
- same thing using the similar from the RexRainbow plugin (Audio Helper), which is dependent from the official Audio plugin.
- Same thing, this time using a mix of Rex's plugin and of the official one.
- All the above, but with preloading the sound/music and making sure preloads were complete.
All worked. Then it stopped working on a relaunch , without me changing anything in the code. The second is triggered and plays, from what I noticed, when I just changed the code. If I restart it, it stops working consistently, I even end up with the song starting a few minutes after it should have. Again, I do not change anything in the code after it works, restart the project and stops.
I should probably mention that I use NW.js and tried it on chrome, same results on both. I also that I got my first NW.js error while quitting the game, and this after I started tying to play two music tracks at once.
I am very curious about what could be the reason behind the inconsistency of having two tracks playing at once. If you have any experience with mixing tracks together in Construct 2, your help would be very appreciated , thanks!
Working on creating MYTHS, a 2D sidescroller adventure game - check more at : nativepixels.com