So, I managed to create a very simple stealth system that was working until for some reason, RPG Maker MZ stopped recognizing key inputs. I debugged the code booleans by pressing F9 and when I set the flags to either on/off (true or false) the codes DOES work, but the input is not detected.
Here's screen caps of my code.
1. I used Common Events so I can keep everything clean and neat in my levels. My first event checks for key inputs
2. The second one is called and it properly changes the sprites and sets the stealth flag to on.
3. This World Event checks whether the player is sneaking or not, second page is a blank slate so I can add whatever I need.
4. Lastly, I have my NPC that moves on the map but won't collide with the player and engage in battle if the player is on stealth mode
As I said, this WAS working on like a charm, then I opened up the project today, and suddenly NO keyboard input is being detected when using neither Ok, Cancel, nor PageUp/Down keys. When turning on the flags on debug, everything works as planned. Any advice on how to fix this? I started using RPG Maker MZ very recently.
Here's screen caps of my code.
1. I used Common Events so I can keep everything clean and neat in my levels. My first event checks for key inputs
2. The second one is called and it properly changes the sprites and sets the stealth flag to on.
3. This World Event checks whether the player is sneaking or not, second page is a blank slate so I can add whatever I need.
4. Lastly, I have my NPC that moves on the map but won't collide with the player and engage in battle if the player is on stealth mode
As I said, this WAS working on like a charm, then I opened up the project today, and suddenly NO keyboard input is being detected when using neither Ok, Cancel, nor PageUp/Down keys. When turning on the flags on debug, everything works as planned. Any advice on how to fix this? I started using RPG Maker MZ very recently.