Page 1 of 1
Gameover screen?
Posted: Tue Dec 27, 2016 4:42 pm
by darkhog
I'd like to make a gameover screen in my episode, along with a special sound for that event. How would I go about that with LunaLua? Definitely not possible with vanilla since when you lost last life it just boots you to the main menu.
Re: Gameover screen?
Posted: Tue Dec 27, 2016 4:53 pm
by Emral
Detect loss of last life, give player an extra life and transport them to a game over screen level which will kill the player, sending them to the title screen.
Re: Gameover screen?
Posted: Tue Dec 27, 2016 5:00 pm
by Fuyu
Or instead, you could do half of what Enjl said and instead of killing the player you use "Misc.exitGame()" to return the player to the main menu.
Re: Gameover screen?
Posted: Tue Dec 27, 2016 5:06 pm
by Emral
Fair enough. Didn't know that existed.
Re: Gameover screen?
Posted: Wed Dec 28, 2016 4:53 pm
by darkhog
Intuition wrote:Or instead, you could do half of what Enjl said and instead of killing the player you use "Misc.exitGame()" to return the player to the main menu.
But then lives won't be reset when the player enters the game again.
Re: Gameover screen?
Posted: Wed Dec 28, 2016 4:59 pm
by Fuyu
Lives reset to 3 upon loading every episode back again.
Re: Gameover screen?
Posted: Wed Dec 28, 2016 6:37 pm
by Emral
Intuition wrote:Lives reset to 3 upon loading every episode back again.
this one is easier said than done. Unless you just reset them on the game over screen.