open a screen with RMB and esc button

Forum organization and occasional community-building.
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
cl0ud
Newbie
Posts: 10
Joined: Mon Aug 07, 2023 3:43 pm
Projects: Ghosts of Fujoshima
Location: France
Contact:

open a screen with RMB and esc button

#1 Post by cl0ud »

Hi, i think i said everything in the title...
I made a screen named "pause_menu) and i want it to be open by pressing the right mouse button or "esc" on the keyboard.
Anyone knows how to do it ? txss :D

giorgi1111
Veteran
Posts: 218
Joined: Sat May 04, 2024 10:40 pm
Contact:

Re: open a screen with RMB and esc button

#2 Post by giorgi1111 »

label start:
$ _game_menu_screen = "pause_menu"


Try this for esc button

User avatar
cl0ud
Newbie
Posts: 10
Joined: Mon Aug 07, 2023 3:43 pm
Projects: Ghosts of Fujoshima
Location: France
Contact:

Re: open a screen with RMB and esc button

#3 Post by cl0ud »

Uh ? I did not understand...

giorgi1111
Veteran
Posts: 218
Joined: Sat May 04, 2024 10:40 pm
Contact:

Re: open a screen with RMB and esc button

#4 Post by giorgi1111 »

Put this in start label
$ _game_menu_screen = "your screen name pause_menu"
If you click esc it must open your screen pause menu

User avatar
cl0ud
Newbie
Posts: 10
Joined: Mon Aug 07, 2023 3:43 pm
Projects: Ghosts of Fujoshima
Location: France
Contact:

Re: open a screen with RMB and esc button

#5 Post by cl0ud »

It works thxs !!!!! At first i didn't understood your code but i was just reading wrong-

Post Reply

Who is online

Users browsing this forum: No registered users