I'm making a Endless runner game (similar to the Autorunner template) and i'm having trouble creating a Game Over screen that displays the players score (Total Distance). I've managed to create a Game Over screen through another layout and when the player falls, it displays that screen, which is OK. But i wanted to create a Game Over screen as soon as the player falls on the Game layout itself rather than switching to a different screen, like Flappy Bird when you fall or crash (Hope thats clear).
Is this possible? If so, can any help suggesting how?
Also, like the Autorunner template, i have a total distance score on the actual game, but have no idea how to display the final distance once the player dies. I want to implement this on the Game Over screen too, so i'd really appriciate if someone could help out on that also.
As stated before, my game is similar to the Autorunner template, so if you can use that as an example for creating a Game Over screen and the Total Distance score that would be really helpful.