In my game I have a scene where the players are running from a guard. If the guard catches them, it triggers a fight. That event is working fine, but I want to set it so that when the battle ends, the guard collapses. I want to set it up so that the guard will stay down until the player leaves the room. Then if they walk back in, the guard will be back up.
I set it up with a self switch onto a second page (with the "damage" form of the guard sprite"). The problem is when I walk back in, the guard has gone back to their original position but is still collapsed and refuses to chase the player (presumably because the self switch is still activated).
Is there a way to reset the self switch when the player leaves the room? Or to accomplish this through some other method? Failing that, is there some way to give the player time to escape after winning the battle, so that the guard doesn't immediately trigger another combat?
I set it up with a self switch onto a second page (with the "damage" form of the guard sprite"). The problem is when I walk back in, the guard has gone back to their original position but is still collapsed and refuses to chase the player (presumably because the self switch is still activated).
Is there a way to reset the self switch when the player leaves the room? Or to accomplish this through some other method? Failing that, is there some way to give the player time to escape after winning the battle, so that the guard doesn't immediately trigger another combat?