Forum rules - please read before posting.

NPC not returning to Idle after dialogue is finished.

Hi,

I've created a test character with a talk animation, and I've added the L/R/D/U animations. I've included them in the "Standard 2D animation" fields. The animation plays automatically when triggered by dialogue, but it doesn't seem to return the NPC to idle animation afterward. I can manually add the return to Idle, but I understand it should happen automatically. I've also noticed that some people add a boolean variable. Could it be that my omission of that variable is why mine isn't returning to idle automatically?
Here's my setup and a video for reference.

https://drive.google.com/file/d/13PEOCUsUCNKQ7IR-W0H4qRhEUbUzkKq2/view?usp=sharing <- image

https://drive.google.com/file/d/1z-re9HBxDQoc1rYU8B1sC4JBLFkl5CK3/view?usp=sharing < - video

as always thank you in advance.

Comments

  • I can't recreate similar behaviour with that of the 2D Demo's Player, Brain2D.

    What are your AC/Unity versions, and are you getting any related Warning messages in the Console? If an expected character animation is not found, it should report so.

    One thing to be aware of: if your character doesn't actually face D/L/R/U, you don't need to provide those animations. The Facing directions field can be set to match your intended directions. If set to None, the "_D" etc suffix is done away with entirely - so you can just have a set of three animations (MHidle, MHtalk and MHwave) in the Controller.

  • Hi Chris! I'm using 2022.3.0f1 Unity and v1.79.3 for AC. I made the suggested changes to "none". Thank you. That seems to have fixed it. I think it was taking the wrong Idle direction and couldn't play it. Thank you! have a wonderful rest of your weekend.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.