Search Unity

How do you make enemies patrol in 2D?

Discussion in '2D' started by SpeedyArtGames101, Mar 2, 2021.

  1. SpeedyArtGames101

    SpeedyArtGames101

    Joined:
    Feb 4, 2021
    Posts:
    4
    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 - https://gamedevacademy.org/how-to-build-a-complete-2d-platformer-in-unity/

    Thanks. Have a good day.
     
  2. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,465
    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:
    upload_2021-3-2_12-6-25.png
     
    eses likes this.