Game is top down perspective, 2D. I am trying to create a way for an enemy to follow the player around obstacles and was thinking how it would probably be convenient to just make an enemy go to the last position where they saw player and try to avoid complicated context steering. Anyways I came to the conclusion that Im not even able to find this last visible position and am a failure.
I have ray casting set and when enemy is able to see the player its following and when there is a wall between it stops. h e l p p l e a s e