IMPORTANT!!!! double click green flag or bad stuff will happen ~~~~~~~~~~~~~~~INSTRUCTIONS~~~~~~~~~~~~~~ arrow keys to move enemy is red you are purple it's kinda glitchy right now because it teleports and I don't know how to make it glide to the first position without breaking the whole AI
~~~~~~~~~~~~~~~DESCRIPTION~~~~~~~~~~~~~~~ Basically, there is a detector sprite which always points to a player and when it hits a wall it goes back to the enemy's position and when the detector hits the player, the enemy has an index which adds up to the element of the list; X,Y positions. if the player is too far away then the enemy just stops and wanders. You can use this as long as you say it in credits. Thanks to @Griffpatch for player wall collision