Hello. What I need help with is a countdown sequence.
Here's the scenario: You've just made it to the end of a dungeon, and have encountered the Big Bad of that area. He laughs and pushes a button, and now you must escape in 5 minutes, or you shall be blown to smithereens. Now just having a leisurely stroll out of the dungeon would be no fun now would it? So you must walk out while trying to speed your way through enemy encounters.
I have the timer displaying properly and when it reaches 0, you die. The problem, is the logic behind the scenes doing the actual countdown (an invisible event counting down 600 frames 10 times before killing you) restarts after a battle. So when you enter a battle, the visible time for the player keeps counting down, but the invisible one stops completely, and starts over upon battle end. If you encountered an enemy with one second left on the clock, you'd see the timer reach 0:00, but you'd really have 5 minutes as soon as the battle ends.
What I want is for the event to keep counting down frames, while in battle, I guess is what I'm trying to say.
Here's the scenario: You've just made it to the end of a dungeon, and have encountered the Big Bad of that area. He laughs and pushes a button, and now you must escape in 5 minutes, or you shall be blown to smithereens. Now just having a leisurely stroll out of the dungeon would be no fun now would it? So you must walk out while trying to speed your way through enemy encounters.
I have the timer displaying properly and when it reaches 0, you die. The problem, is the logic behind the scenes doing the actual countdown (an invisible event counting down 600 frames 10 times before killing you) restarts after a battle. So when you enter a battle, the visible time for the player keeps counting down, but the invisible one stops completely, and starts over upon battle end. If you encountered an enemy with one second left on the clock, you'd see the timer reach 0:00, but you'd really have 5 minutes as soon as the battle ends.
What I want is for the event to keep counting down frames, while in battle, I guess is what I'm trying to say.