Having issues with changing the font ypos when certain situations pop up

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.
Post Reply
Message
Author
User avatar
LewdEdits
Newbie
Posts: 6
Joined: Sat Apr 17, 2021 8:33 pm
Completed: 0
Projects: 1
Contact:

Having issues with changing the font ypos when certain situations pop up

#1 Post by LewdEdits »

The issue I'm running into is, I change fonts in certain circumstances, but, Font B, the one I switch to, is lower than Font A.
(Additional info that I don't think you need to know, but it adds more context, Font A is a regular font, however, no italic version of it exists, so I'm switching to another font to fix that issue)

I've narrowed it down to number that changes its Y position is in this part, "ypos":

Code: Select all

style say_dialogue:
        properties gui.text_properties("dialogue")
        justify True
        xpos 30
        xsize 440
        ypos -20
Try as I may, I can't figure out how to set it up to change this value for certain sentences.
I tried a lot of things, a lot, I can't crack it. Feels like there should be a simple fix, but my tiny brain can't solve it.

Thank you again for any help offered.


BONUS QUESTION (optional)
Also, if you know a way to adjust the space between fonts (vertically), that would help.

Sentence A, Sentence A, Sentence A, Sentence A, Sentence A, Sentence A,
<this is the space I'm talking about>
Sentence B, Sentence B, Sentence B, Sentence B, Sentence B, Sentence B,

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Kocker