- Home /
Question by
dheerajluffy · Aug 19, 2020 at 09:34 AM ·
c#animation2d-platformer
animation state is stuck
i am making a platformer and have 4 animation states (idle , run, jump,fall) i used enum to represent and make transition happen , and i also used istouchinglayer() method to know the character to play the fall animation when its not touching to any collider ,but the problem is when i jump while pressing the left or right movement keys it comes to fall and after hitting ground(collider) it is not going back to idle animation
can anyone help ! any help is greatly appreciated ,thank you
Comment