Forum rules - please read before posting.

Kill idle animation by click

I have my character perform various Idle "boredom" animations (SUC) every 10 seconds, if there is no input detected.
But I would like these animations to be immediately stopped, even halfway through, when the player clicks somewhere and the character starts interacting with the environment again.

I managed to partially solve this by
1) setting the Action List with these boredom animations as Run in Background (instead of Pause Gameplay) and
2) setting the Click action of the cursor to Play Custom: Walk animation of the character

However, this only works when I want to move around with the character (clicking the Navmesh). But if I click a Hotspot (it has a Walk to marker set), the walk animation does not immediately play, and the character "floats" to the marker, finishing the boredom animation.

How can I solve this? I just want to immediately stop the current "boredom" animation and replace it with the standard walk animation.

Comments

  • Have a Trigger parameter that used in an Animation Transition from your Boredom animation back to your Idle animation. You can use the Character: Animate Action to invoke it, or invoke it manually through a custom script when the mouse is clicked.

    You may also be able to have a Transition from Idle -> Boredom that has an Exit Time of 10 seconds. Depending on your setup, it may not be necessary to have the Boredom animation kick in via an ActionList.

  • Thank you. In the end I opted for Bool instead of the Trigger, because whenever I clicked, the Trigger "loaded" and the next Boredom animation was immediately skipped.

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.