When the code runs in my game, at some point during a fade to black, the game freezes. It doesn’t even have an error crash. The game just keeps running as a black screen. None of the buttons work, not even the menu button, and the same thing happens every time I reset the game.
I fixed it by removing the controls function and putting the contents of the function into the “while true” block. After that I changed the “while true” block to an “if true then” block and put the contents of the “while true” block into the “if true then” block. Here’s the game:
It is not appropriate to use a while loop in this place. The CPU will always execute the statements of this loop and has no free time to do other things.