My friend, @marineman58 was making a platformer and I told him I would create an enemy AI for him so, here it is. Sorry it's laggy and not very good, I made it in like, 5 minutes. ALSO: You can drag the enemy in the player, so you don't get stuck
All code by me, feel free to use it if you say you got it from @RDc12 THAT MEANS YOU TOO @marineman58!