Hello! This feels like a question everyone knows the answer to, but I'm still pretty new to Ren'Py and after hours of searching for a solution, I've finally decided to ask the question myself.
Basically, I want to make a button insensitive while a character is speaking (or while the dialogue window is visible). Then of course, when dialogue is completed, sensitivity should be restored. How would I go about coding this?
Thank you for any and all help!
[SOLVED] Detect Dialogue Window Visibility
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.
- Sharp Glimpse
- Newbie
- Posts: 7
- Joined: Tue Dec 24, 2019 6:32 pm
- Contact:
[SOLVED] Detect Dialogue Window Visibility
Last edited by Sharp Glimpse on Tue Jul 07, 2020 8:51 am, edited 1 time in total.
Re: Detect Dialogue Window Visibility
the dialogue window is the say screen (you can find it in the screens script).
the command for checking whether a screen is currently shown is renpy.get_screen("screenname")
so do:
if renpy.get_screen("say"):
bla bla
the command for checking whether a screen is currently shown is renpy.get_screen("screenname")
so do:
if renpy.get_screen("say"):
bla bla
- Sharp Glimpse
- Newbie
- Posts: 7
- Joined: Tue Dec 24, 2019 6:32 pm
- Contact:
Who is online
Users browsing this forum: No registered users