Hi guys im back
Im creating a level in which stationary/rotating/moving enemy game objects have a line of vision and if the player goes in that line of vision, the game is over. It’s a top down 2D game. How do I go about creating a script for that?
For rotating enemies, the line of sight will move with and the moving enemies, the line of sight will move with them as well.