How do I make it so that when a dialogue is running, you can click anywhere on the screen to advance the dialogue. But the screen itself is insensitive, so you don't accidently click on some buttons while the characters are talking.
Here's a simplified version of the code.
Code: Select all
screen game_menu():
modal True
# Screen code, the code for activating the dialogue goes here.
label game_loop: # Start here
show screen game_menu
pause
label dialogue(sayer, dialogues):
python:
for line in dialogues.line:
renpy.say(sayer, line)
jump game_loop
Solved it with help from renpy discord. If anyone happens to stumble here with a similar question here's the fix:
Code: Select all
screen game_menu():
modal True
# Screen code, the code for activating the dialogue goes here.
screen dialogue_screen():
dismiss action Return()
label game_loop: # Start here
show screen game_menu
pause
label dialogue(sayer, dialogues):
python:
renpy.show_screen("dialogue_screen")
for line in dialogues.line:
renpy.say(sayer, line)
renpy.hide_screen("dialogue_screen")
jump game_loop