Hello!
I've just finished making a local-multiplayer joining system for a 2D Platformer I'm making, and I want to make it so that the font's outline colour matches the player's colour.
I've succeeded in making the font colour different depending what player it is, but the problem I have is that the font changes the first player's font to red, then the second player's to blue, but then they're both blue because the font is the same and the blue player was the last spawned in.
Here's the code I'm currently using:
if colour == "blue":
# Here would be the line of code that would be something like:
username.get_font("font").make_unique()
# Change outline colour (fully functional, by the way)
username.get("custom_fonts/font").outline_color = Color(0, 88, 255, 255)
# Here is the code that changes the player's skin,
but that's not really relevant
I know there's a "Make Unique" button with fonts in the editor, but this time I have to do it through code (GDScript, just to be clear xD).
If you know another way that I can do
this code in the first place, then I'd love to hear it.
Also, I can give more code and settings if you need it.
Thanks for any help! :D