How to create AI to follow player in a 2D side scroller?

I currently have a system that allows enemies to move toward my character BUT its too basic.
What I have at the moment are enemies that follow the player along the X - Axis only, and the enemies totally ignore any sort of platforms or barriers in the level.
(The enemies do attack my player and all of that is fine)

Is there anyone who knows how to get enemies to follow my character whilst also obeying the physics and being unable to walk right through walls?

1 Like


You can use this tutorial and after getting movement set flipbook to make character looks like walking, For walking through walls problem set collision for AI.