[Solved] How to disable this page (esc)?

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
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

[Solved] How to disable this page (esc)?

#1 Post by nanashine »

Two "newbie" questions hah :lol: :oops: :oops:

When you're playing the game and press "esc", this appears:

Image

I wanted to know how to disable that. You will press "esc" and nothing happens.
I know it sounds crazy, since this is useful. It's just a test I want to make.

And also this black bar in the main screen:

Image

Does anyone know which image that is? I basically made everything inside "gui" folder transparent to discover which image this is, but it's still there hah
I want to delete it (or make it transparent), since it's in front of the screen image I'll use there.

Thank you.
Last edited by nanashine on Mon May 06, 2019 7:47 pm, edited 1 time in total.
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How to disable this page (esc)?

#2 Post by Imperf3kt »

In your script, add
$game_menu = None
That will disable the escape key and right click actions. (kind of, but not really)

The image you see there is in gui/overlay folder (gui/phone/overlay for mobile devices). Either main_menu.png or game_menu.png
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: How to disable this page (esc)?

#3 Post by nanashine »

Imperf3kt wrote: Mon May 06, 2019 6:18 pm In your script, add
$game_menu = None
That will disable the escape key and right click actions. (kind of, but not really)

The image you see there is in gui/overlay folder (gui/phone/overlay for mobile devices). Either main_menu.png or game_menu.png
Thank you so much! At first it didn't work, so I added this:

Code: Select all

    $ _game_menu_screen = None
And I found the image. Thanks :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

lacticacid
Regular
Posts: 36
Joined: Fri Nov 23, 2018 6:44 pm
Contact:

Re: [Solved] How to disable this page (esc)?

#4 Post by lacticacid »

You could also mess around with keybindings if you just want to tie it to an another button. https://www.renpy.org/doc/html/keymap.html
~There is almost always a better, easier way to approach a problem.~

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: [Solved] How to disable this page (esc)?

#5 Post by nanashine »

lacticacid wrote: Sat May 11, 2019 11:54 am You could also mess around with keybindings if you just want to tie it to an another button. https://www.renpy.org/doc/html/keymap.html
Thank you! I'll give it a look :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

Post Reply

Who is online

Users browsing this forum: Ocelot, Zahdernia