Gameover screen?

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
darkhog
Buster Beetle
Buster Beetle
Posts: 87
Joined: Sat Dec 10, 2016 11:17 pm

Gameover screen?

Postby darkhog » Tue Dec 27, 2016 4:42 pm

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.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Gameover screen?

Postby Emral » Tue Dec 27, 2016 4:53 pm

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.

Fuyu
Fry Guy
Fry Guy
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: Gameover screen?

Postby Fuyu » Tue Dec 27, 2016 5:00 pm

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.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Gameover screen?

Postby Emral » Tue Dec 27, 2016 5:06 pm

Fair enough. Didn't know that existed.

darkhog
Buster Beetle
Buster Beetle
Posts: 87
Joined: Sat Dec 10, 2016 11:17 pm

Re: Gameover screen?

Postby darkhog » Wed Dec 28, 2016 4:53 pm

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.

Fuyu
Fry Guy
Fry Guy
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: Gameover screen?

Postby Fuyu » Wed Dec 28, 2016 4:59 pm

Lives reset to 3 upon loading every episode back again.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Gameover screen?

Postby Emral » Wed Dec 28, 2016 6:37 pm

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.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari