Hide a specific pixels

Can i hide a specific pixels of a sprite ?

If key pressd. = hide the pixles that are in collision with an object , but the other pixels ae still shown

Could you add another animation to your sprite Object that has those pixels hidden? Then when in collision, show that animation.

2 Likes

You can’t punch holes in sprites themselves, no. That’s commonly referred to as reverse masking and isn’t available in the rendering engine.

beanmatt’s suggestion will work. You can also outright hide sprites altogether (hide action), or move objects higher on the Z order, which will make them appear in front of the sprites with a lower z order.

1 Like