How to make Enemy AI

I am trying to make a game… however, no matter how hard I try I can’t figure out how to make enemies move. I need them to move, so can someone help?

Always—number #—velocity
Collision left/right—flip

That’s how you do it.


I made a Minecraft game with a Zambie that follows you and doesn’t jump and you click it to kill it.