How to make AI Enemy alongside edge teleportation

What Wick Editor Version are you using?
1.19.3

Describe the Problem
I am making a fighting game and I need someone to make an AI and edge bounce teleportation for me or at least help me with it. My enemy should have a sword and the edge teleportation means when the player touches the edge of the screen, it teleports them to a different frame where there are different other enemies there.

What have you tried so far?
I have tried making the enemy follow you, but it didn’t work.

this is off-topic, because this has nothing to do with what he asked help for

If you cant help then why did you comment at all.