How do I switch actor's animation from walking to idle.
Blackfools
Member Posts: 4
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
Which behavior are you using to make the actor move?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I have the Animate behaviour for the walking animation,
And I use the MoveTo Behaviour to follow my mouse click.
When mouse button is up. Play idle anamation.
Or when self.position.X = [destination x] and self.position.Y = [destination y], play idle animation.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User