How to implement AI in Paper 2D Game

I want to know how to implement a system where enemies react when the player is within a certain distance to the player, and once the player is far enough away the enemy defaults back to a “wander” type within a certain area. I have done these things in 3D games using blackboard and the query system, however from what I can tell, these systems can not be implemented in the 2D environment. I tried using the get distance to node on the enemy blueprint but it doesn’t seem to be retrieving the correct data.
Please suggestions and solutions only, any help is appreciated.

I am wondering also… How can we implement ai movement without navmesh?

after that I watch these tutorial series and it works well

the only problem is locking pawn’s rotation, but i am working on it.