image - how to use texture masks in game Maker? -


first off i'm not totally sure if "texture masks" correct term use here if knows please let me know.

so real question. want have object in gamemaker: studio moves around it's texture changes depending on position pulling larger static image behind it. i've made quick gif of might like.

it can found here

another image might explain "source-in" section of image.this

this reply same question posted on steam gml forum mrdave:

the feature looking draw_set_blend_mode(bm_subtract)

basically have draw onto surface , using code above switch draw mode bm_subtract. rather drawing images screen remove them. draw blocks on background , remove area. can draw put on surface onto screen.

(remember reset draw mode , surface target after. )

its hard head around first time, isn’t complex once used it.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -