In most of my scenes I have a timer/clock cutscene relationship set up where as soon as the scene begins, I start the timer cutscene which is then delayed by 1 second, and then adds 1 to the current timer. Then the clock cutscene is run, which translates that timer variable to minutes/hours variables or what have you. Then the timer cutscene is run again at the end of the clock cutscene. I have the time variable set up to be on the in game menu so I can see it counting up during gameplay.
This works fine in most of my scenes, lets call them scenes A and B, and in switching between scenes A and B there are no problems. The timer continues as it should. I also have a battle scene, scene X, where I'd like the timer to be paused, so I do not have the cutscenes in this scene.
This also works fine, and the timer stops. However, when the battle scene, X is over and I switch back to scene B, the timer is run at two times what it normally runs at. Meaning, the timer cutscene is called twice, instead of once.
So I played around with it trying to figure out what the issue is and I found only one reference to the timer cutscene in scenes B and X, and I finally decided to remove the call to the timer cutscene when coming from scene X, by using the check previous scene action. So ideally, the timer cutscene would not run at all when coming from scene X, rather, only when coming from scene A.
But much to my surprise, the timer cutscene was still being called TWICE when switching from scene X. I have notifications (play speech actions) set up to indicate whether or not the correct actions are being called for the correct scene, and those are showing up correctly.
How is the timer cutscene being called twice? More importantly, how is it being called at all when I have removed the run cutscene action when coming from scene X? Also sorry this post is so confusing, but it's a very confusing problem.
Comments
A handy feature when testing Actions is in the GameEngine's Action List Manager inspector: check the Show Active Action Lists box to get a list of all currently-running lists. May help you to shed some light.