Closed davidzvlc closed 1 year ago
There's not enough information here. What exactly are you trying to do?
In your demo you have text and the name of the speaking character, I have tried to change the color of the character's name but it always looks white.
I have tried draw_set_colour(c_red); before drawing and also "[c_black][portrait,spr_portrait][name,Juju]" on the create event.
Neither of the 2 options works, I don't know if there is another way to do it, I haven't found anything in the manual.
[name,Juju]
is a command that sets the name of the portrait elsewhere. This string is not responsible for actually drawing the name of the character, this happens at line 43 in the Draw event for obj_example_big_textbox
.
yes, that's 1 of the 2 options i've tried, i've written: draw_set_colour(c_black); _element.draw(_x + textbox_width + 10, _y - 20); and the name of the character continues to be white. With the box of the name it works well but with the name it seem to do nothing.
(I'm only talking to you about bugs, last time I also told you about another bug xD, but I really love your tool, I've been using it for 1 year and today I discovered this problem. Thanks for scribble!!!)
draw_set_colour()
doesn't inherently change the colour of text drawn using Scribble. draw_set_colour()
only affects draw_text_scribble()
- if you look inside that script you'll see how it works.
If you want to change the blending for a text element, you should use .starting_format()
.blend()
or inserting a colour using a command tag into the string that is being drawn.
Oh okey thanks, that works!!!
Great! Good luck with your games.
I have tried to change the color of the name and it does not work, it always looks white. I say it in case it helps to debug the code. Thanks anyway for your script :)