Invisible sprite outside layer?

Hi all.
I’m looking for some way to hide sprite when its outside the layer.
The sprite fall from top to bottom and I want its show only part inside the layer.

Someone could help me ? Thanks you

If i would focus on your statement

sprite falls from top to bottom

then what’s the problem
set the position of the sprite outside the visible area, so that initially the sprite will be completely invisible

and when an action is performed and the sprite enters the visible area it will be visible.

If you find it difficult to understand better see a video tutorial
search for Sonar Systems on YouTube
you will get all the contents over there… :smile:

Happy Coding

1 Like

Use ClippingNode. You can give it another node to be used as a stencil.
void setStencil(Node *stencil);

2 Likes