Pause 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
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Pause screen

#1 Post by isobellesophia » Sun Sep 29, 2019 1:45 am

Hello again

I would like to add a pause screen in quick menu's, preference menu is different than pause one so that the player only need to click the screen once they were done pausing.

Anyone can help me gives a thanks.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: Pause screen

#2 Post by namastaii » Sun Sep 29, 2019 1:41 pm

Typically, visual novel games don't really require a pause button because the game only continues when the player clicks. Maybe I'm misunderstanding what you need

User avatar
Angelo Seraphim
Regular
Posts: 32
Joined: Tue May 21, 2019 8:00 am
Completed: Enamored Risks (NaNoReNo 2020)
Projects: 616 Charagma
Organization: GLSUoA
Deviantart: glsuoa
itch: glsuoa
Location: London, UK
Discord: Just A Concept#9599
Contact:

Re: Pause screen

#3 Post by Angelo Seraphim » Sun Sep 29, 2019 4:13 pm

Though it isn't necessary, it is, however, simple to do.

Code: Select all

init python:
    _game_menu_screen = "game_paused" # This will set the default menu screen to 'game_paused'

screen game_paused():
    tag menu
    use game_menu(_("GAME PAUSED")):
        # stuff here.
Do note that this isn't actually 'pausing' the game. Just consider it as a holding screen.

You may also want to change the quick menu item 'Pref' or what have you to have the action 'action ShowMenu('game_paused')'

Hope this helps.
Image

User avatar
gas
Miko-Class Veteran
Posts: 838
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Pause screen

#4 Post by gas » Sun Sep 29, 2019 6:24 pm

Code: Select all

screen paused():
    modal True
    tag menu
    add Solid((0,0,0,125))
    button: 
        xfill True
        yfill True
        background None
        action Return()
Then add the button to ShowMenu("paused") in the quick menu.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Pause screen

#5 Post by isobellesophia » Sun Sep 29, 2019 11:30 pm

Pretty thanks all of you guys, gotta try this!
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: Google [Bot]