I have a very large project for an Undertale - styled game, and when I go to the next room, sometimes an enemy shows up, or sometimes I go across two rooms instead of one. https://arcade.makecode.com/S49179-91914-74229-23816
Here is the project if someone wants to take a look.
This buggy behaviour is random, and I feel that it may be a problem with the emulator.
If you interact with the wall, sometimes the enemy will show up with the player still visible, even though it is before in the code, and has a 100ms delay between actions (its not as buggy at 1000ms but I dont want to wait a second)