Hi !
I have a little timer problem. Note that it's my first game, so sorry if my problem sound stupid 😛
So I have this side quest in my game where the main character must explore a cave to find a kid before something happen to him.
When you enter the cave, the timer starts and you have 40 seconds to find the kid before he dies. Everything worked fine. The timer starts, find the kid in time he lives and if the timer countdown to zero the sprite of the kid change and the cutscene ''dead kid'' is activated.
The problem is, I decided to had some monsters to level up the difficulty a bit. They are ghost that chase after you and start a battle if they touch you. So to reach the kid in time you have to avoid them. But when the timer turns to zero while in battle, the battle is interrupt, then restart again and the switch that activate the ''death'' of the kid is not turned on by the parallel event in charge.
Any idea what to do so the battle don't get interrupted when the timer reach zero and so the switch that ''kill'' the kid gets activated in, or at least after, the battle when the timer reach zero?
I have a little timer problem. Note that it's my first game, so sorry if my problem sound stupid 😛
So I have this side quest in my game where the main character must explore a cave to find a kid before something happen to him.
When you enter the cave, the timer starts and you have 40 seconds to find the kid before he dies. Everything worked fine. The timer starts, find the kid in time he lives and if the timer countdown to zero the sprite of the kid change and the cutscene ''dead kid'' is activated.
The problem is, I decided to had some monsters to level up the difficulty a bit. They are ghost that chase after you and start a battle if they touch you. So to reach the kid in time you have to avoid them. But when the timer turns to zero while in battle, the battle is interrupt, then restart again and the switch that activate the ''death'' of the kid is not turned on by the parallel event in charge.
Any idea what to do so the battle don't get interrupted when the timer reach zero and so the switch that ''kill'' the kid gets activated in, or at least after, the battle when the timer reach zero?