Irregular sprite overlapping area
Posted: Wed Mar 16, 2022 10:44 am
I made a small game in a non-ZGE engine, so this made me think how would the same project work in ZGE.
The mechanic I’m not sure about is the “calculate the relevant area” mechanic. Basically what I’d like to find out is how much (in pixels, but doesn't have to be super precise) of a certain sprite is overlapping with another sprite. The shape of one of the sprites is organic and animated (10 frames or so), while the other is rectangular.
This is what it currently looks like:

Is this possible to do in ZGE without using OpenGL calls?
The mechanic I’m not sure about is the “calculate the relevant area” mechanic. Basically what I’d like to find out is how much (in pixels, but doesn't have to be super precise) of a certain sprite is overlapping with another sprite. The shape of one of the sprites is organic and animated (10 frames or so), while the other is rectangular.
This is what it currently looks like:

Is this possible to do in ZGE without using OpenGL calls?