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.
Now how can I make a button hide and show the dialogue screen in the same way without the game advancing and without creating a boolean inside the say screen?
What also does not work is just hiding the say screen, since when you show the say screen again it is expected to get a new line of dialogue of course.
default say_window_show = True
screen say(who, what):
style_prefix "say"
window:
if not say_window_show:
xoffset config.screen_width
# or
# at fancy_transform_to_move_out
#else:
# at fancy_transform_to_move_in
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what"
Haha, yeah that was my idea too, just offset the screen and then create a button all over the window, but it's definitely ugly.
I'm just confused that it's not easier to hide it, since hitting the "H" key can easily show and hide it without advancing or clicking needed. Would need to know more about the inner workings of renpy I guess.