Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Please add clipping masks!

A topic by thejinx created Sep 07, 2021 Views: 407 Replies: 10
Viewing posts 1 to 7
(1 edit) (+3)

Would be pretty game changing for me to be able to use a layer as a clipping mask within an animation. Would have so much potential, not least of which for automating common tasks.

As an example: If I wanted to make a shine effect for all pickups, I could just bring in a gradient and translate it from left/right side of canvas as the 'light'. Bring in a sprite of say a crown with a transparent bg. Clip the 'light' to the crown sprite and now the light is only visible over filled area of the crown, i.e. not the background or other transparent areas. In this example it would allow me to use exactly the same animation for all my pickups, ensuring visual consistency.

If the clipping mask itself can also be animated this would have a pretty limitless potential!

Thanks

(+2)

Hi, yes should be really useful. I will check that for future release.

(1 edit) (+3)

Yeah, I second this. Although I do this via code within my game engine (GMS2), would be cool and simple to have it pre-rendered in sprites.

Example - turning this;

https://gfycat.com/totalincomparablechrysomelid

Into this;

https://gfycat.com/academicunkemptlark

(1 edit) (+1)

yeah I'd usually write a shader, but having this kind of functionality inside the art pipeline would be very useful. Thanks for the example; I didn't have time to put something together  to better get the point over :D

(1 edit) (+2)

Yes, seems useful, I will release next update with parent-child scale and skew really soon and I will definitively check that for the next one.

(+1)

Thanks! I'll grab a license in anticipation. Cudos on being so active by the way. 

(+1)

Hey, some progress on this feature (should be available for next update 0.8)

Thats awesome news! Great progress :D

Will the mask layers be an alpha channel like a lightmap or something similar, so we could do stuff like have a gradient to the mask also?

(+1)

Hey, yes. It mixes the alpha, clipping mask can be inverted also (to make a hole). Let me know if it needs other settings :) 

(+1)

Hi, implemented with 0.8 !

This rocks! Just in time for needing this feature in a big way too. Much <3 & aubergines to you :o)