Stopping ESC from going to unwanted screens

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
Bryy
Veteran
Posts: 407
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Stopping ESC from going to unwanted screens

#1 Post by Bryy »

As of right now, I have my ESC button set up like this:

Code: Select all

    b "This is exactly why we should tell Zauer. It could be connected to the land of the crab vikings or something."
    w "Crab vikings already exist on this plane."
    
    $quick_menu = True
    $ _game_menu_screen = "quick_load"
    
    b "Zombie crab vikings."
    pc "This was not in the instruction manual!"
So right now, I press ESC and it works fine. It goes to that screen.

But then I press ESC again, and instead of returning, it goes to the options screen, which completely screws up on the visual Return button and sends the player about twenty screens back, which is why I set ESC to just go to the save/load screen in the first place.

How do I stop it from going to the second screen on the second click of ESC and instead return on the second ESC?

rames44
Veteran
Posts: 233
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Stopping ESC from going to unwanted screens

#2 Post by rames44 »

Remove the default mapping of the ESC key from the keymap?

User avatar
Bryy
Veteran
Posts: 407
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Re: Stopping ESC from going to unwanted screens

#3 Post by Bryy »

I tried, it just give me an error that it does not know what None means.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Stopping ESC from going to unwanted screens

#4 Post by rayminator »

Bryy wrote: Sat Jan 12, 2019 6:02 pm I tried, it just give me an error that it does not know what None means.
what error is it given you post it here we might be able to help out more

User avatar
Bryy
Veteran
Posts: 407
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Re: Stopping ESC from going to unwanted screens

#5 Post by Bryy »

rayminator wrote: Sun Jan 13, 2019 6:47 am
Bryy wrote: Sat Jan 12, 2019 6:02 pm I tried, it just give me an error that it does not know what None means.
what error is it given you post it here we might be able to help out more

Code: Select all

While running game code:
  File "game/script.rpy", line 646, in script
    $ _game_menu_screen = none
  File "game/script.rpy", line 646, in <module>
    $ _game_menu_screen = none
NameError: name 'none' is not defined
Also says the same for None.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Stopping ESC from going to unwanted screens

#6 Post by rayminator »

it's given you that error because none is not defined

here is a example of what is a define is

say if you want the image to flash different color like white this will make the image flash white

Code: Select all

init:
    define flash = Fade(.25, 0.0, .75, color="#fff")

scene scnes11 with flash
so you want to define what you want none to do so you can't just put this and hope it will work

Code: Select all

$ _game_menu_screen = none
hope this help you out why you getting this error
i can't help you 100% i'm still learning python

Post Reply

Who is online

Users browsing this forum: Bing [Bot], voluorem