I have a situation where I need to check if an instance of an object that is moving around is present within the actual visible play area. I mean the area that the player is currently seeing.
I tried the condition of "is object in play area" but this does not work as it seems to indicate the actual borders of the whole game area? So if I have a game area of 2000x2000 this will be true whenever the object is somewhere inside this. I need to just have it be true if it is within the actual visible play area (for a scrolling game so what the camera is currently showing to the player)
I have attached an example where the camera is centered on the player and there is 3 enemies present that are outside the area the player see. I have an event to count up a counter if the enemies are in the play area and I want this to only be true if they are actually in the play area the player sees instead as it is now. Do anyone know how to best achieve this? Is there another event that is something like "is player in visible play area" ?