pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

stuck in menu after controller events not set up on scene change

Open jwunderl opened this issue 5 years ago • 0 comments

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:

  1. Go to https://makecode.com/_66C1gt1oUL5L
  2. Immediately press the menu button to pause the game and enter the menu
  3. wait for the splash screen to show up, then remove the splash screen
  4. 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

jwunderl avatar Aug 07 '19 20:08 jwunderl