2d Ai help

so i want my zombie to follow the player, but the stuff ive looked up on google are all for 3d ai.

It really depends what you want your AI to do. AI is a very broad topic that can be as simple as “walk until you bump into something, then turn around and repeat” and as complex as procedurally finding places to take cover from gunfire, pathing to enemies, and reacting to complex situations intelligently.

I’m guessing you’re wanting intelligent pathing? Then you’ll need an implementation of something like A* (aka AStar) or Djikstra’s algorithm. Tile-based A* is simplest to set up since there are most examples for it online… but it’s still complex to grapple if you’re new to coding!