You can use CHKCHR() that will return the character of the graphic screen at the given coordinates:
IF CHKCHR(X,Y)=="Enemy" THEN 'Collision
Take into account the drawing process, since if something overwrites the enemy character, this function will not return the enemy.
1そうだね プレイ済み