Hi dop2000,
Can i pick your brains about this please?
I'm trying to add an Elseif in the example you provided. basically, i have a spawn object that now spawns the Enemy.
Circle is overlapping Enemy....................Target set position to Player
Enemy pick nearest to Player.x, Player.y.......Target move at angle
...............................................Angle: angle(Player.x, Player.y, Enemy.x, Enemy.y)
...............................................Distance: (Сircle.width/2)
ELSE
Circle is overlapping Spawner..................Target set position to Player
Enemy pick nearest to Player.x, Player.y.......Target move at angle
...............................................Angle: angle(Player.x, Player.y, Spawner.x, Spawner.y)
...............................................Distance: (Сircle.width/2)
ELSE
TARGET set position (as I want it to kind of follow the player, rather than being idle off screen)
Hope this makes sense... the above doesn't work form me :(