How to make a portion of BBtext colored

I’m trying to use BBtext to make a specific part of text colored. My current text function is "Name + “: " + Actual_Text” With Name and Actual_Text being parameters. I have 2 more parameters, Name_Color and Text_Color, and I plan to use them to change the colors to match character colors and contrast with the background if necessary (e.g. dark on a light background and light on a dark background). Both of these parameters are “Color (text),” will that work with hex codes?

im sorry, but i dont really understand your issue.

Edit: I completely misread the thread, sorry for the confusion. Leaving the original post below, but it can be completely ignored.

At least out of the box, the 2D renderer (PixiJS) does not allow you to change styling (color/shadows/etc) of BitmapText mid render. It’s all text styles (in your bitmap atlas or via effects/tint) or no text styled

You can see some of the pros/cons of each text type here: Text | PixiJS

(Html is basically bbtext, bitmap is bitmap, etc)

No way to dynamically change a single word or section’s color compared to the rest of the bitmap text string being rendered

Edit: although the experimental split text function in pixi8 would probably solve this as you could split for certain words and have the new object be a different color as needed. It’ll be a bit before gd is on pixi8 and potentially longer for anyone to implement this feature, though. SplitText & SplitBitmapText | PixiJS

Silver…Where does it say theyre talking about bitmap? Theyre talking about using BBText.

I think i understand what they mean. They want a name to have a color, and the text to have a color, using bbtext.

However i think that theyre concerned that their color uses RGB instead of hex. Unless, theyre just wondering if using a variable containing a hex code will work in place of it.

However…that is if by parameter, they mean variable. Im really not sure.

But heres a solution that could help:

Expression:

"[color=#" + Name_Color + "]" + Name + "[/color]" + "[color=#" + Text_Color + "]" + ": " + Actual_Text + "[/color]"

You are totally right. That’s what I get for going from one thread about bitmap fonts to another after midnight.

Apologies for the confusion.

No worries, i wrote that reply last night but fell asleep before i finished it

it works, Thanks!

However I did edit it a little so that the colon has the name’s color, which didn’t cause any issues

Yea no problem i didnt know which you would want