Chase Example

12819
12820
29
30

Use the arrow keys to move, and the enemy will chase.

The enemy compares it own x and y position to the x and y position of the player, and uses the result to choose a direction.

Editor