Arrow Keys to move the player around. This is a enemy AI I have created that I call the "Chaser". The Notes and Credits explains how this AI thinks, so if you want to, read them. I will upload an Enemy AI every Wednesday until I say otherwise. You can go from left side to right side and vice versa.
"Chaser" AI: Difficulty (Code): Easy to create. Difficulty (In Game): Easy to avoid. Explanation of AI: The "Chaser" is an extremely simple AI that chases the player using direction blocks. It moves similarly to the player, but jumps lower and accelerates slower. However, while it accelerates slowly,it has no limit to speed. The way it jumps is based on this equation: "If (Y Position of Player) is greater than (Y Position) then Set Y Velocity". It points towards the player at all times, and if the player's X position is greater than it's X position (Player is to the right) then it moves to the right and vice versa. When it touches the player, it bounces off it with a reverse Xv Yv script. It essentially reverses the Chaser's speed. And that's it.