• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM [Solved] font_add_sprite_ext() displaying two-color sprites as solid color

A

Adam Martinez

Guest
Hello! I just started using font_add_sprite_ext() to display a clock in my game. Here's the code I'm using...

global.font = font_add_sprite_ext(spr_font,"1234567890:",true,2)
draw_set_font(global.font)
draw_text(x,y+20,string(global.minutes) + ":" + string(seconds))

Here is the sprite index I'm using...



But here's how it displays in-game. I even changed to background to black to make sure I'm not just missing the white border... It does appear though that everything I made white is displaying as black.



Any ideas how to fix this?...

Thank you!
 
F

FourOhForum

Guest
Changing this code: global.font = font_add_sprite_ext(spr_font,"1234567890:",true,2);
to this code: global.font = font_add_sprite_ext(spr_font,"1234567890:",false,2);

That SHOULD fix your problem.
If it doesn't, try adding: draw_set_color(c_white);
add it before what you've shown.
if you have a different default color, then AFTER the code, add that code,
for example: draw_set_color(c_black);
 
A

Adam Martinez

Guest
Added draw_set_color(c_white) at it worked! Thank you!

 
Top