Hi I am developing a top down shooter and I'm looking to do this...
When the enemy is in range or sees the player, they will draw a line from the enemy to the player for a short time before they shoot. I've seen this mechanic in the game returnal, right before one of the flying monsters shoot at you, there is a laser that pops up to alert you to dodge.
Please help me with the steps taken and/or screenshots or capx on how this would be done