How do I switch actor's animation from walking to idle.

Hi,
im doing a simple mouse point and click game where by
when I click on a scene, my actor will walks towards where my mouse clicks.
And when Im not clicking anything, my actor will then switch to idle animation.

I manage to make my actor to walk to follow my mouse click, but i have no ideal how to make it switch to idle.

Please help.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Which behavior are you using to make the actor move?

  • BlackfoolsBlackfools Member Posts: 4

    I have the Animate behaviour for the walking animation,

    And I use the MoveTo Behaviour to follow my mouse click.

  • scottharrrules43scottharrrules43 Tulsa, OklahomaMember, PRO Posts: 694

    When mouse button is up. Play idle anamation.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Or when self.position.X = [destination x] and self.position.Y = [destination y], play idle animation.

Sign In or Register to comment.