Changing text color according to character speaking

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
EzzyAlpha
Regular
Posts: 84
Joined: Sun Apr 24, 2011 5:32 pm
Location: Portugal
Contact:

Changing text color according to character speaking

#1 Post by EzzyAlpha » Fri Jul 26, 2013 1:06 am

(*mumbles about how it's been a while since I've been here*)

I would like to change the text color of the dialogue depending on the character speaking, but I can't seem to find a way to do so. Is it possible to do?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3612
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Changing text color according to character speaking

#2 Post by trooper6 » Fri Jul 26, 2013 1:13 am

just add what_color to your character definition. Like so:

define b = Character("The Barber", color="#99FF66", what_color="#99FFFF")

See here:
http://www.renpy.org/wiki/renpy/doc/ref ... /Character
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
EzzyAlpha
Regular
Posts: 84
Joined: Sun Apr 24, 2011 5:32 pm
Location: Portugal
Contact:

Re: Changing text color according to character speaking

#3 Post by EzzyAlpha » Fri Jul 26, 2013 1:19 am

Thank you, that worked perfectly :D!

Post Reply

Who is online

Users browsing this forum: No registered users