pxt-arcade
pxt-arcade copied to clipboard
stuck in menu after controller events not set up on scene change
Describe the bug
you can get stuck in the menu with no way to interact / leave if the scene changes in another fiber
To Reproduce Steps to reproduce the behavior:
- Go to https://makecode.com/_66C1gt1oUL5L
- Immediately press the
menu
button to pause the game and enter the menu - wait for the splash screen to show up, then remove the splash screen
- game is now stuck, need to reset.
control.runInParallel(function () {
pause(3000);
game.splash("if you were on the menu,", "it's now broken!");
});
this can be accomplished in blocks in the same way using a sprite overlap event^
Expected behavior
menu should re-register controller events when splash screen scene is popped