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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -