Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question enemy animation problem

Discussion in 'Animation' started by unity_116772, Aug 28, 2021.

  1. unity_116772

    unity_116772

    Joined:
    Jul 26, 2021
    Posts:
    6
    hi I'm a noob in unity ;)

    I have animated an enemy in unity (idle, run and attack animation), but how can I let the enemy walk to the player when he is in range. And how can I let him attack the player and then the player dies.

    I made the model by myself :)

    I hope you guys can help.
     

    Attached Files:

  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
  3. unity_116772

    unity_116772

    Joined:
    Jul 26, 2021
    Posts:
    6
    yea but then i would still have a problem because i have my own animated enemy and they have somthing from the asset store.

    i followed this one :

    at 5:08 he shows that we need to put the animation in loop time.

    but i cant find that seting or settings in general
     
  4. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    If you're struggling with animations, you may want to look up some tutorials for that.

    If you click on the animation clip in your project window, you'll find the "Loop Time" option in the inspector. Loop Time makes the animation loop endlessly instead of stopping after it's played once.

    The tutorial you linked is dealing with state machines and seems to be a bit more complicated than what a beginner should be tackling.

    I started with this course: https://www.udemy.com/course/unitycourse2/

    It says it's on sale for 84% off for the next 5 hours if you're interested. Of course, there are other free resources, but the course has the advantage that you can ask questions to their dedicated staff.