How do you make enemies patrol in 2D?

Hello! I am new to Unity and do not know ANYTHING about C#. I want to make a platformer. I am using a good tutorial. However, it doesn’t say how to make enemies patrol left and right. I would appreciate it if you could give me a tutorial in the comments.

This is the tutorial I’m using - How To Build A Complete 2D Platformer In Unity - GameDev Academy

Thanks. Have a good day.

Howdy! One thing you are going to have to get good at is Googling when a tutorial doesn’t have exactly what you are looking for. Or just getting good at Googling in general. Here is a basic search on YT with some tutorials on patrolling:

1 Like