I'm not entirely sure how to describe the issue accurately in the title, so I apologize if it wasn't clear.
The issue I'm having is as follows.
There is a moment in my game where the player is given a chance to hide from a soldier. there are 2 choices for hiding spaces, a chimney (which results in you sneezing and being discovered), or a closet, or you don't hide and get discovered. When the closet is selected the player can cause the game to break by pressing down and enter, while hidden and the scene is playing out.
I've been bashing my head against this problem and I'm stumped.
If you need a more detailed description of what the scene is read below:
The scene opens with you waking up, to screams outside and someone trying to break down the front door. So once you get a few feet out of your room an event triggers that indicates that the door is about to break and you should probably hide. At this point a 5 second clock appears and you have that much time to hide. If you don't hide the soldier sees you and you have to fight. If you hide in the chimney the soldier enters and starts searching, but you sneeze and he finds you, and you fight. If you choose the closet, the soldier enters, searches the house and leaves. Then you re-appear and can leave the house.
However, if you hit down and enter, while hidden in the closet, you can't move when you re-appear.
The issue I'm having is as follows.
There is a moment in my game where the player is given a chance to hide from a soldier. there are 2 choices for hiding spaces, a chimney (which results in you sneezing and being discovered), or a closet, or you don't hide and get discovered. When the closet is selected the player can cause the game to break by pressing down and enter, while hidden and the scene is playing out.
I've been bashing my head against this problem and I'm stumped.
If you need a more detailed description of what the scene is read below:
The scene opens with you waking up, to screams outside and someone trying to break down the front door. So once you get a few feet out of your room an event triggers that indicates that the door is about to break and you should probably hide. At this point a 5 second clock appears and you have that much time to hide. If you don't hide the soldier sees you and you have to fight. If you hide in the chimney the soldier enters and starts searching, but you sneeze and he finds you, and you fight. If you choose the closet, the soldier enters, searches the house and leaves. Then you re-appear and can leave the house.
However, if you hit down and enter, while hidden in the closet, you can't move when you re-appear.