- Edited
That's basically what i'm trying to do, make my enemy follow the player in the X (or Y axis, I'm not sure) like a lakitu from mario bros. The problem is that move_and_slide used a Vector2 so I don't know how to ONLY use ONE axis instead of two. I guess it follows 2 axes because they only move horizontally but also are stuck to the Y axis...? Some help please!
The enemy's code right now: