Page 1 of 1

Return to Game from Menu Button??

Posted: Sun Dec 15, 2019 5:25 am
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.

Re: Return to Game from Menu Button??

Posted: Sun Dec 15, 2019 5:57 am
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')

Re: Return to Game from Menu Button??

Posted: Sun Dec 15, 2019 6:03 am
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?

Re: Return to Game from Menu Button??

Posted: Sun Dec 15, 2019 6:28 am
by isobellesophia
How about if you show

Code: Select all

window show

Re: Return to Game from Menu Button??

Posted: Sun Dec 15, 2019 7:12 am
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

Re: Return to Game from Menu Button??

Posted: Wed Dec 18, 2019 8:38 pm
by Ibitz
action Return() ?