JujuAdams / Scribble

Efficient, internationalized, multi-effects text renderer for GameMaker
https://www.jujuadams.com/Scribble/
MIT License
321 stars 47 forks source link

Multiple colors for text, like draw_text_colo(u)r? #491

Closed Moonman327Dev closed 10 months ago

Moonman327Dev commented 10 months ago

I've finally decided to just use scribble for my game project after trying to figure out how to draw text with sprites (and make it not look like a mess) for damage numbers in my game, and after trying for about 9-10 hours (and not counting the amount of time I've put into UI and string messing-withs before this for that) it finally broke me, and I wish I just went through with it earlier (instead of getting scared off by how big this library is) because it works amazingly.

The only issue I've encountered so far that I couldn't find others talking about (from quick searches in this issue's open/closed ones and google) is where you can't use multiple colors for text like gamemaker's base "draw_text_color" function, letting you use 4 colors (one for each corner), instead of being limited to just one. I might be the only one having this "issue" since the 4 colors are a thing I like to use sometimes, like for this: image image

Usually I just use this for 2 colors, top and bottom color drawing, and it's not something I'm really missing out on fully and can just swap to using one color, but I do love the slight mix between them.

Let me know if this is something that's even possible (and doesn't take a you a year of frustration to figure out how) or if there is a way to do it and it's just not listed under "colors" in the documentation search. Should've used this library sooner instead of trying to reinvent the wheel for so long though...

JujuAdams commented 10 months ago

Use the gradient feature.

Moonman327Dev commented 10 months ago

image Looks like it was me missing it under colo(u)rs, thanks!