• 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 Invert Colors With Code

L

Lander

Guest
So in my game, I have found one way to invert colors by using the sprites but what I want to do involves lots of objects to do that and makes the game lag. So I was wondering if someone could help me find a way to make code that inverts colors in game maker using code to make the game less laggy
 
B

bojack29

Guest
Try looking into shaders, or, you can try layering sprites and using a white sprite for image blending.
 

zbox

Member
GMC Elder
Shader is the way to go. Very easy to do. Fragment shader, set RGB to 1-R,1-G,1-B.

You can probably even do it with blend modes tbh
 
Top