How to make movement of a 2D fighting A.I. in PvP game?

you can use behavior trees to implement what ScottSpadea explained
https://docs.unrealengine.com/latest/INT/Gameplay/AI/

I want to make a 2d fighting game but want to know how should i make ai move like all 2d fighting game.