0 votes


I am trying to mask the eyes of my game character, and I am having some trouble when using Light2D.

I have constructed my character from component sprites that I can then animate like a paper doll, but I want the iris/pupil to be masked properly when the character blinks. Therefore, I have a Light2D mask that corresponds to the shape of the eyes, that I can then scale down as the character blinks. However, once the pupil and iris are outside the bounding box of the mask texture, they are no longer masked. (I tried making the masking texture larger, but of course I would eventually want a scale of 0 on the Y axis for a completely closed eye.

How do I make a mask for a sprite that does not render sprites that fall outside the bounding box of the mask?

Masking Attempt

Godot version 3.5.1
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.