Trying to make a Game Over -> Load Screen

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
lixy
Newbie
Posts: 6
Joined: Sun Mar 14, 2021 7:29 pm
Completed: office horror 1.0
Projects: untitled dating sim, BIRE
Contact:

Trying to make a Game Over -> Load Screen

#1 Post by lixy » Mon May 17, 2021 9:54 pm

I'm not sure if this is an obvious question, but I'm trying to implement game over screens that go into the load screen. I've figured that out, but when in the load screen, the game continues in the background (ie, it runs through everything in "gameover_1" and starts running "gameover_2"). Putting return just flashes the load screen then boots the player to the main menu. Is there any way to just get the game to stop at the load screen until the player either loads a save or quits to the main menu etc.?

Code: Select all

label gameover_1:
    $ renpy.block_rollback()
    stop music
    scene bg bw
    $ persistent.end_1 = True
    play effects "audio/brb.mp3"
    show text "wow! fired immediately! congrats!"
    "ending 1/?"
    show screen load
    
label gameover_2:
	#my other endings continue down here

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Trying to make a Game Over -> Load Screen

#2 Post by emz911 » Mon May 17, 2021 10:57 pm

You can replace show with call and that would stop the game on the screen until an action is performed. Don't forget to remove any return button from the load screen if you want to force only a load or a quit!

User avatar
lixy
Newbie
Posts: 6
Joined: Sun Mar 14, 2021 7:29 pm
Completed: office horror 1.0
Projects: untitled dating sim, BIRE
Contact:

Re: Trying to make a Game Over -> Load Screen

#3 Post by lixy » Wed May 26, 2021 9:46 pm

emz911 wrote:
Mon May 17, 2021 10:57 pm
You can replace show with call and that would stop the game on the screen until an action is performed. Don't forget to remove any return button from the load screen if you want to force only a load or a quit!
thank you!!

Post Reply

Who is online

Users browsing this forum: No registered users