Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How to create a "wall enemy"??

Discussion in '2D' started by eusecl98, Jun 9, 2024.

  1. eusecl98

    eusecl98

    Joined:
    Jul 3, 2022
    Posts:
    1
    Hi, I'm looking for a type of enemy that follows a platform like the beetle in the gif but I can't do it. Any suggestions??

     
  2. pertholdth

    pertholdth

    Joined:
    Feb 28, 2024
    Posts:
    227
    i think you need the help of kurt dekker, he has a good project with this mechanic showcased
     
    Kurt-Dekker likes this.
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,571
    I believe what Perth means is this project (source in comments):



    But I don't think that's what is going on in the GIF above.

    For one, the left two beetles follow around the end of a platform but the other doesn't.

    For two, the right beetle doesn't even use the whole platform.

    I think the GIF above is just simple authored patrol paths put on top of a scene of tiles or sprites, and code to follow those paths.