• 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] Text doesn't work with bm_subtract?

andev

Member
This is what I'm getting when I try to subtract text from a surface:


If I mess with my alpha settings, I get this:


Which tells me the entire bounding box is being subtracted?

PRE-EDIT: While I was writing this topic, I thought I'd just try putting
Code:
draw_set_alpha_test(1);

and that did half of it. But pixel interpolation was gone, which I managed to fix by using bm_normal instead of bm_add for normal drawing:


Yay interpolation, but alas, further problems. I fixed this one by messing around with where I put the equivalent draw_set_alpha_test(0); after it was enabled, which left me with:


And the final fix to that is to draw the text in black instead of white? Not sure why it works but it's probably something to do with bm_subtract inverting things.


Result!

Just posting in case someone else finds this useful!
 
Top