2D character collision problem.

I’m making a 2D side-scrolling game(which is my first game ever) and so far its been going well. I decided to add a enemy that chases the controllable character and now when he comes close to him because of the 3D collision shape he knocks the controllable character off the map. How can I fix this problem?