When I click on the Preview of the game, everything works well at first, but then when I replay the same level without leaving the preview and when I switch to the next level, the preview crashes, but there are no errors in the Debugger.
When I posted a link to the game, almost the same thing happens when playing in the browser: the browser does not crash, just nothing happens, the scene does not switch. I found a way out like this: I added an action so that after a while the scene would switch again.
Solution: it turned out that the button for the death menu (with which you can close the game) and the button for the finish menu (with which you can go to the next level) were in the same position. And I forgot to disable the exit button if the death menu is hidden.
It helped when I exported the game in the browser. When I click on the next level button, and if nothing happens in the browser, and at that moment an additional level switching action is triggered. This is my solution to the problem that I described above. But Gdevelop, when it can’t switch to the next level, just crashes.
Gdevelop sometimes switches to the next scene, sometimes not.
Yes, it turned out that the button for the death menu (with which you can close the game) and the button for the finish menu (with which you can go to the next level) were in the same position. And I forgot to disable the exit button if the death menu is hidden. Thank you!)