How do I fade music when using Pause and resume scene

I cannot get the play music on channels with fades to work properly when using scene pause/resume…

  1. I play music on channel 1 in main scene on scene beginning - this works fine.
    image

  2. I then pause and play scene2 where I fade out music on channel 1 and start another piece of music on channel 2 (again on scene beginning) - this also works fine.
    image

  3. When I then return to the original scene via
    image
    I continue with this (the “The Pause …” action is the one referenced above in step 2)


    and here things go haywire - the fade doesn’t work (the music from scene2 just continues) and the “old” music on (channel 1) does not fade in again.
    I know that the actions are run (checked with debugging).
    But the music fade-outs and fade-ins just doesn’t work…any suggestions?

I think your final screenshots events will never trigger because you have already changed scenes at that point. Subevents of the change scene event would still be ignored once the scene has changed, as they are running off a completely different scene than the one that is currently processing.

I’d probably have a separate event in your individual scenes that has the ‘scene just resumed’ condition as well as the ‘volume of the music on the channel 0 is 0’ condition, then do your fade in action.

1 Like

@Silver-Streak I know that my actions in the last screenshot do trigger as I had some debug code there which does complete - I didn’t include those in my original screenshot but here they are:

Ahhh maybe the actions actually get run before I pause the scene and not when I resume. Because they are sub-actions?? hmmm weird

I will play around with the “Scene just resumed” condition to see if that can alleviate the problem.

Just to be clear. The fade in and resume has to be in the scene that is being resumed, and not a subevent of the pause and change scene action.

Otherwise it should work fine.