You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bit late (sorry!) but I looked into this and it seems that Text uses a bitmap font (defined in kenneytheme\fonts and kenneytheme\kenney.json), which I think means you can't easily change colour on-the-fly.
I managed to get an alternate font colour by editing the .png file in \fonts. If you want to use multiple colours you'll need to add a line to kenney.json, but then you'll also need to specify which font you're using every time you create a Text object, otherwise the font won't render.
My first thought was that it doesn't default to the first one in the array, but line 89 in Text.js does exactly that. I'll have a look today and see if I can figure it out.
Can't find anything in documentation about this, and as far as I can tell Element.Text has no color attribute. Am I missing something here?
The text was updated successfully, but these errors were encountered: