Changing Text Options?

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
Lochana
Newbie
Posts: 21
Joined: Fri Jul 28, 2017 6:26 am
Projects: Touhou - Reimu's day out! (Won't see the light of day probably)
Github: lochana-Dineko
Contact:

Changing Text Options?

#1 Post by Lochana »

I'm sure that this a pretty stupid question, but this has still left me confused. So according to the docs you're supposed to change font size by typing in this to "options.rpy"

Code: Select all

style.default.size = 22
However when I do end up entering this into the file I get a error like this

File "game/options.rpy", line 10: expected statement.
font.size = 60

I remember changing successfully this in one of my projects last year. Did something change?

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Changing Text Options?

#2 Post by Potato0095 »

Well, maybe you're using an updated version of Ren'Py, since last year (I think) we have the gui.rpy, there you can find this line:

Code: Select all

define gui.text_size
Here we'll have 6 like this one, each one having their own text locations, look at the comments and you'll know the one you want to change.
"There are two types of lies: Lies that hurt, and lies that don't."

Post Reply

Who is online

Users browsing this forum: No registered users