Sprite is visible for the player?

I have a paralax background with several layers, among them there are sprites that at a certain moment the player can see because the intermediate layers have left a gap.

This happens dynamically during the game, not in a programmed way. I don’t know if the player is watching that sprite or not at a certain time.

Is there any way to know through events or some extension, if the player is watching a sprite and there is no other covering it? Thank you!

I immediately think of eye tracking which is a no, GDevelop cannot do that.


You could check for collision between the sprite and the objects that could cover it. Or you could check whether a point (or points) on the sprite is on a cover object.

1 Like