How to change Text color?

Magusalfador

Veteran
Veteran
Joined
Jun 15, 2014
Messages
209
Reaction score
36
First Language
English Spanish
Primarily Uses
Hi all!

Im doing a bit of coding for the scene_battle, and when I want to draw a variable that contains text, I can draw it but I dont know how to change the color of that text.

Can you point me on the right direction?

thanks!
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
965
Reaction score
708
First Language
English
Primarily Uses
RMMV
@Magusalfador For a window, you can use the 'changeTextColor' function in combination with various other color functions ('normalColor', 'systemColor', etc) or grab a color from the windowskin directly using the 'textColor' function.

Code:
this.changeTextColor(this.normalColor());
this.changeTextColor(this.textColor(11));
Or you can directly change the color of the font using any valid CSS color.

Code:
this.changeTextColor('#ff0000');
this.changeTextColor('rgb(255,0,0)');
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How do you do when you want to work on projects but the game companies make so many games available for free because of the quarantine?
Kes
I have just stepped down from being a Mod, so please don't send me any more pm's with Mod questions. Thanks
The laptop I've had for almost 3 years has blue screened and is stuck on a boot loop. Can't wait to make games on nothing!
Made a brief video showcasing early game play... Got a copyright claim by BIG UP! (https://big-up.style/) for using music I bought from here (Future Steam Punk Pack). Now I wonder if I should strip any purchased music from here out of my game. :LZSskeptic:
Cleaned character animation and new room


I'm not sure if I should open a thread for this in games in development..

Forum statistics

Threads
95,477
Messages
929,441
Members
125,717
Latest member
Schiraz
Top