If you want an AI to chase you, then it's this simple: First make sure the player can move in a loop. In the same loop, enter this code:
IF X‹AIX THEN DEC AIX,DIF
IF X›AIX THEN INC AIX,DIF
IF Y‹AIY THEN DEC AIY,DIF
IF Y›AIY THEN INC AIY,DIF
'DIF is a variable for the speed. Easy=0.25, Medium=0.5, Hard= 1, Insane would be 1 but something added. (Like a random dash attack.)
1そうだね プレイ済み