So, doing my usual tomfoolery for my game, I stumbled with this error message: “Texture key already in use: pressenter_text” and thought to myself…
Is there any way to detect this errors to launch an error screen? So that’s what I am trying to figure out, is there any way to trigger a scene when the console or the game detects an error at any time?
I’ll see if that works, thanks! (also, the error was a multiple call for starting a scene, I fixed it adding a check for detecting if the player is or isn’t on a specific state, if it isn’t, it will enable itself, making it so it doesn’t repeat the this.scene.launch)
When I was building my game for iOS and Android, I found that it was difficult to troubleshoot issues in my builds, so I put together the following code to alert errors to the screen. As samme mentioned though, the “key exists” thing is warning, not an error so it won’t show that. My code mainly shows game breaking issues. You can replace the alert with a scene launcher if you really want to.