• 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!

GameMaker Making cursor the inverted color to the background

N

NNNIKKI

Guest
This would be very useful for my game. Every pixel of the curor is the inverted color of the background. There is such a thing in Minecraft. Is this possible in GM?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
For Minecraft-style inverting crosshair you would draw a white-on-transparent cursor to a surface in Draw GUI event, and then draw a part of application_surface to it with bm_subtract blend mode and draw_set_color_write_enable of 1,1,1,0 (so that it doesn't modify alpha channel). Then draw that surface.
 
N

NNNIKKI

Guest
Ok, I'm still no so advanced at GameMaker, but thanks for your help!
 
Top