Return to Game from Menu Button??

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
Wendyd24
Regular
Posts: 39
Joined: Wed Nov 15, 2017 11:04 pm
Contact:

Return to Game from Menu Button??

#1 Post by Wendyd24 »

Hello again... Still at it, and I'm needing some more help. Sorry, but I searched everywhere else. :P

I've made a custom menu and it works just fine, but I'm not sure what to program to return to the game.

The question mark area is what I need filled in.

Code: Select all

screen menu:
    tag menu
    imagemap:
        idle "gui/menu.png"
        hover "gui/menuhover.png"

        hotspot (600,140,81,33) action ShowMenu('history')
        hotspot (595,211,92,38) action ShowMenu('save')
        hotspot (595,276,97,38) action ShowMenu('load')
        hotspot (508,357,268,40) action ShowMenu('preferences')
        hotspot (589,428,95,36) action ShowMenu('mainmenu')
        hotspot (537,617,204,50) action ????
Thanks for any help! Lemme know if this is in the wrong place or anything.

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: Return to Game from Menu Button??

#2 Post by isobellesophia »

Try using hide

https://www.renpy.org/doc/html/screen_actions.html#Hide

Code: Select all

hotspot (537,617,204,50) action Hide('menu')
I am a friendly user, please respect and have a good day.


Image

Image


Wendyd24
Regular
Posts: 39
Joined: Wed Nov 15, 2017 11:04 pm
Contact:

Re: Return to Game from Menu Button??

#3 Post by Wendyd24 »

isobellesophia wrote: Sun Dec 15, 2019 5:57 am Try using hide

https://www.renpy.org/doc/html/screen_actions.html#Hide

Code: Select all

hotspot (537,617,204,50) action Hide('menu')

Of course :oops:

When I do that though, the scene reappears, but the text-box is gone. Any fixes?

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: Return to Game from Menu Button??

#4 Post by isobellesophia »

How about if you show

Code: Select all

window show
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
Alex
Lemma-Class Veteran
Posts: 3090
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Return to Game from Menu Button??

#5 Post by Alex »

Wendyd24 wrote: Sun Dec 15, 2019 5:25 am ...I've made a custom menu and it works just fine, but I'm not sure what to program to return to the game. ...
Try Return() action - https://www.renpy.org/doc/html/screen_a ... tml#Return

User avatar
Ibitz
Regular
Posts: 63
Joined: Thu Jul 27, 2017 4:47 pm
Projects: Magical Disarray (WIP)
Organization: Ibitz Visual Novels
Deviantart: http://ibitz.deviant
itch: ibitz
Contact:

Re: Return to Game from Menu Button??

#6 Post by Ibitz »

action Return() ?
Image

Ibitz is a self-taught coder/artist who works alone on their games. All games I create are freeware. If you need any help with coding or creating your game, just let me know. I'd be more than happy to help.

Post Reply

Who is online

Users browsing this forum: No registered users