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.
-
ConerNSFW
- Regular
- Posts: 40
- Joined: Sun Oct 23, 2016 5:08 pm
-
Contact:
#1
Post
by ConerNSFW » Wed Dec 14, 2016 12:17 pm
The textbox doesn't show during renpy.input and as far as I know it's supposed to. I decided against using the say screen to display my textbox for this reason and used a custom screen, but I would prefer to use the say screen, anyway here's the say screen code incase there's anything wrong with it.
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if not cutscene:
background "gui/textbox.png"
text what id "what"
if who is not None:
window:
style "namebox"
text who id "who"
elif cutscene:
background "gui/textbox_cutscene.png"
text what id "what":
xpos 182
if who is not None:
window:
style "namebox2"
text who id "who"
-
Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#2
Post
by Ocelot » Wed Dec 14, 2016 12:26 pm
https://www.renpy.org/doc/html/dialogue ... management
As far as I remember renpy.input call screen 'input' internally, so something like that should help:
Code: Select all
window show
$ renpy.input('What is your name?')
window auto
< < insert Rick Cook quote here > >
-
ConerNSFW
- Regular
- Posts: 40
- Joined: Sun Oct 23, 2016 5:08 pm
-
Contact:
#3
Post
by ConerNSFW » Wed Dec 14, 2016 12:30 pm
Thanks but I've tried the 'window show' command and it hasn't helped, neither has window auto.
Users browsing this forum: Google [Bot], Hojoo