[Solved] How do you make holding down s key in screen continuously send s keystrokes?

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
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

[Solved] How do you make holding down s key in screen continuously send s keystrokes?

#1 Post by henvu50 »

How do you make holding down s key in screen continuously send s keystrokes?

Code: Select all

screen screen50():
     key "s" action bla .... #only sends one s keystroke, even if you hold down the s key
     key "repeat_s_key_over_over_while_holding_it_down" action bla #continously sends s keystrokes as if you're hitting it real fast, but you're just holding it down.
(Sorry for asking so many questions, I'm trying to crash course ren'py as fast as I can.)
Last edited by henvu50 on Mon Jun 21, 2021 4:15 pm, edited 1 time in total.


henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Re: How do you make holding down s key in screen continuously send s keystrokes?

#3 Post by henvu50 »

emz911 wrote: Sun Jun 20, 2021 11:08 pm https://www.renpy.org/doc/html/keymap.h ... t=keyboard

Maybe repeat is what you're looking for?
Thanks that's it.

Code: Select all

repeat_K_s

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]