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.
-
lacticacid
- Regular
- Posts: 36
- Joined: Fri Nov 23, 2018 6:44 pm
-
Contact:
#1
Post
by lacticacid » Mon Jan 07, 2019 7:46 am
Hi! I made a custom screen with text that varies according to when it appears. The text shows up just fine, but for some reason I can't get it to stay inside the designated area? I don't know what I'm doing wrong.
Code: Select all
screen note():
frame:
at note_slide
background Image("images/note.png")
yoffset 15
xoffset 15
vbox ypos 40 xpos 21 xsize 100 ysize 100 box_wrap True:
text "[notetext]" size 17
timer 2.0 action Hide('note', transition=dissolve)
~There is almost always a better, easier way to approach a problem.~
-
Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
-
Contact:
#2
Post
by Per K Grok » Mon Jan 07, 2019 1:14 pm
lacticacid wrote: ↑Mon Jan 07, 2019 7:46 am
Hi! I made a custom screen with text that varies according to when it appears. The text shows up just fine, but for some reason I can't get it to stay inside the designated area? I don't know what I'm doing wrong.
Code: Select all
screen note():
frame:
at note_slide
background Image("images/note.png")
yoffset 15
xoffset 15
vbox ypos 40 xpos 21 xsize 100 ysize 100 box_wrap True:
text "[notetext]" size 17
timer 2.0 action Hide('note', transition=dissolve)
try
text "[notetext]" size 17 xmaximum 100
-
lacticacid
- Regular
- Posts: 36
- Joined: Fri Nov 23, 2018 6:44 pm
-
Contact:
#3
Post
by lacticacid » Mon Jan 07, 2019 10:20 pm
Per K Grok wrote: ↑Mon Jan 07, 2019 1:14 pm
lacticacid wrote: ↑Mon Jan 07, 2019 7:46 am
Hi! I made a custom screen with text that varies according to when it appears. The text shows up just fine, but for some reason I can't get it to stay inside the designated area? I don't know what I'm doing wrong.
Code: Select all
screen note():
frame:
at note_slide
background Image("images/note.png")
yoffset 15
xoffset 15
vbox ypos 40 xpos 21 xsize 100 ysize 100 box_wrap True:
text "[notetext]" size 17
timer 2.0 action Hide('note', transition=dissolve)
try
text "[notetext]" size 17 xmaximum 100
Already tried. Doesn't do anything.
~There is almost always a better, easier way to approach a problem.~
-
Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
-
Contact:
#4
Post
by Per K Grok » Tue Jan 08, 2019 12:59 pm
lacticacid wrote: ↑Mon Jan 07, 2019 10:20 pm
Per K Grok wrote: ↑Mon Jan 07, 2019 1:14 pm
lacticacid wrote: ↑Mon Jan 07, 2019 7:46 am
Hi! I made a custom screen with text that varies according to when it appears. The text shows up just fine, but for some reason I can't get it to stay inside the designated area? I don't know what I'm doing wrong.
Code: Select all
screen note():
frame:
at note_slide
background Image("images/note.png")
yoffset 15
xoffset 15
vbox ypos 40 xpos 21 xsize 100 ysize 100 box_wrap True:
text "[notetext]" size 17
timer 2.0 action Hide('note', transition=dissolve)
try
text "[notetext]" size 17 xmaximum 100
Already tried. Doesn't do anything.
try this
Code: Select all
vbox ypos 40 xpos 21 xsize 100 ysize 100:
frame:
text notetext size 17
and I think you will find that the text is inside the designated area. That area is just different from what you are expecting.
-
lacticacid
- Regular
- Posts: 36
- Joined: Fri Nov 23, 2018 6:44 pm
-
Contact:
#5
Post
by lacticacid » Mon Jan 14, 2019 10:19 pm
Per K Grok wrote: ↑Tue Jan 08, 2019 12:59 pm
lacticacid wrote: ↑Mon Jan 07, 2019 10:20 pm
Per K Grok wrote: ↑Mon Jan 07, 2019 1:14 pm
try
text "[notetext]" size 17 xmaximum 100
Already tried. Doesn't do anything.
try this
Code: Select all
vbox ypos 40 xpos 21 xsize 100 ysize 100:
frame:
text notetext size 17
and I think you will find that the text is inside the designated area. That area is just different from what you are expecting.
Doesn't work either. At this point I just decided to split it up manually with the {p} tag
~There is almost always a better, easier way to approach a problem.~
Users browsing this forum: Bing [Bot]