Is it possible to change the text colour for a few lines? (solved)

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
merde senpai
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 1:45 pm
Tumblr: opulent draws
Contact:

Is it possible to change the text colour for a few lines? (solved)

#1 Post by merde senpai »

Ok so I'm centering the first few lines in the game, but the default text colour is grey and the picture is dark so the text doesn't stand out. I was wondering if it was possible to change the text colour to white for a few lines?

To clarify:
I have lines of text in game that bend in with the background. Was wondering if I could make only those few lines white.

sorry if this is a dumb question im really new to all this :00

my code for the few lines is this:

Code: Select all

    centered"I want to reach out to them, but before I have time to respond, those eyes narrow"

    centered"And I feel something pressing over my mouth"

    centered"As my eyes start to close on their own"
    
    centered"I feel some sort of nostalgia stir in me"
    
    centered"before I black out"
what should i add for it to show as white text?? thx
Last edited by merde senpai on Sun Aug 20, 2017 5:22 pm, edited 1 time in total.

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Is it possible to change the text colour for a few lines?

#2 Post by mitoky »

Hello! (:
That's explained in the ren'py documentation.
https://www.renpy.org/doc/html/text.html#text-tag-color

For the exact color, simply google the format you want to use, as there are color charts online.
I hope i could help!

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Is it possible to change the text colour for a few lines?

#3 Post by Remix »

Another alternative is to give all text an outline much like some movie subtitles do... (only true type fonts though .ttf)

define gui.dialogue_text_outlines = [ (1, "#333", 0, 0) ]

parameters
Frameworks & Scriptlets:

User avatar
merde senpai
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 1:45 pm
Tumblr: opulent draws
Contact:

Re: Is it possible to change the text colour for a few lines?

#4 Post by merde senpai »

Thank you! I tried both ways and they work :>

Post Reply

Who is online

Users browsing this forum: Google [Bot]