I want to create an enemy which flies randomly then when the player comes near it, it follows the player.
If it hits the player, it retreats a little then if the player still in its view, it returns to follow the player.
Platform game, megaman style.
In youtube, kinda like this: youtu. be/gEavYYiWAzk