So I have programmed some basic but decent AI that *should* wander around until it has line of sight to the player sprite. It should then chase the player.
However, although I have set the Wall sprite as an obstacle, the enemy can still see through it and will continuously chase the player, even through mazes. There is probably something obvious I have forgotten to include in the code.
Screenshots of my issue: Thanks in advance!
Martin