A demo for https://scratch.mit.edu/discuss/topic/179303/ and https://scratch.mit.edu/discuss/topic/300243/ Use up and down arrow keys to move the black sprite, and left and right arrow keys to turn around. Check the script in the "Line of View" sprite to see how the visibility is evaluated.