Allow Spider to idle at destination

2D Mobile Game

Objective: Allow spider to reach the destination then idle and walk for the next destination doing the same.

First of all create a reference to the Animator component located in child gameobject.

To create the loop of idle and walk, just set the trigger every time the player reaches the target destination which will play Idle animation which has a exit time and plays walk animation thus enabling movement again.

This is the condition for the transition from walk to idle which check if the trigger is set.

This is the transition between idle to walk animation which has an exit time so that it automatically starts walk animation after complete Idle animation is played.

And this is the Final Result.




Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Notes to a new tester on an agile team

Using the Ancient C++ Libraries, today.

Why Flutter? Topline by Abbey Road Studios showcased at the Google I/O.

How to start contributing to Open Source the hard way ( && Finding your Life Partner ).

iOS like Sectioned ListView Widget in Flutter

I’m (virtual) commuting to work during COVID-19

picoCTF: So Meta

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Niraj Karki

Niraj Karki

Unity Developer

More from Medium

Tabbed Master-Detail Form

CS373 Spring 2022: Connor Popp

Saving and Loading in Unity Part 3

2021 Pittsburgh JUG Video Library