Is there a way to customize the Right mouse click in just one game as opposed to ALL renpy files?
What I found online shows how to change it in the main Renpy code (under "common/keymap" and so on) but I don't want it to effect everything... just the one game I'm working on?
https://www.renpy.org/doc/html/keymap.html
I'd like it to go to a different screen then the "save" screen
I'm also new to coding and changing the common renpy code sounds like a really bad idea > <
customizing the keymap
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.
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.
- Ocelot
- Lemma-Class Veteran
- Posts: 2407
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: customizing the keymap
It is right here in documentation:
Just remove 'mouseup_3', from 'game_menu' and append it whenever you want:Documentation wrote:To change a binding, update the appropriate list in config.keymap. The following code adds the 't' key to the list of keys that dismiss a say statement, and removes the space key from that list.Code: Select all
init: $ config.keymap['dismiss'].append('t') $ config.keymap['dismiss'].remove('K_SPACE')
Code: Select all
init python:
config.keymap['game_menu'].remove('mouseup_3')
< < insert Rick Cook quote here > >
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: customizing the keymap
by the way, also read thisScribbles wrote:I'd like it to go to a different screen then the "save" screen
https://www.renpy.org/wiki/renpy/FAQ#Ho ... me_menu.3F
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]