Trying to do something on the principle of cameras scanning the area from right to left in platformer game. If the player enters the camera light the end of the game. it's about something like that presented on the masterpieces below
I am asking for help and indicating the way I should follow to do this