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.
-
lindsay-jb
- Regular
- Posts: 61
- Joined: Tue Aug 25, 2020 1:05 am
-
Contact:
#1
Post
by lindsay-jb » Fri Apr 08, 2022 11:15 am
I'm adding transforms to my say screen, however whenever I use the crop in my transform it sends the window to the back and the top line of text is buried under the namebox. I'm stretching my textbox so I can't resize the namebox, as that includes the portion of the top of the textbox that's not supposed to be resized. If I don't use any transform or if I just dissolve the nametag and window in, the text is where it's supposed to be. Any help on how I can use the crop transform and keep my text in the front?
Code: Select all
screen say(who, what):
# change who_old on dismiss
key 'dismiss' action[SetVariable('who_old', who), Return()]
#text "who_old is [who_old]" align(0.5, 0.05) # just for test
style_prefix "say"
if who is None:
if who_old == who:
add "gui/namebox.png":
pos(0.063,0.333)
if who_old != who:
add "gui/namebox.png" at narrator_tag_in:
pos(0.063,0.333)
if who_old == who:
window:
id "middle"
style "middle"
text what id "what"
if who_old != who:
window at narrator_in:
id "middle"
style "middle"
text what id "what"
transform narrator_in:
alpha 1.0 crop (0, 0, 768, 0)
easein 0.6 crop (0, 0, 768, 800)
transform narrator_tag_in:
alpha 0.4
easein .2 alpha 1.0
Below are some screenshots. Example 1 shows what it looks like after using the crop transform, example 2 is what it looks like if no transform is used to show the textbox.
-
Attachments
-

- example 2.png (71.07 KiB) Viewed 312 times
-

- example 1.png (95.67 KiB) Viewed 312 times
-
lindsay-jb
- Regular
- Posts: 61
- Joined: Tue Aug 25, 2020 1:05 am
-
Contact:
#2
Post
by lindsay-jb » Sun Apr 10, 2022 8:41 pm
I’ve been messing with this and have come to discover it’s not an issue with the text not being at the front. The problem is that the transform is cropping starting from the top of the window so the words are cutting cropped off. How can I change the starting point for the crop? This has been driving me a little crazy.
-
rayminator
- Miko-Class Veteran
- Posts: 754
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
-
Contact:
#3
Post
by rayminator » Sun Apr 10, 2022 8:47 pm
there is only two thing you can do is to make the textbox bigger or shorting the sentence.
Users browsing this forum: enaielei, Google [Bot]