Hello guys
I am having a weird behaviour in my Unity 2D game… I hope some1 can help me here.
I am trying to have different sprites and animations depending on what the user is doing and wearing. There are like 3 levels of states. A first level with the player action (Idle, Walking, Picking…), a second level with the player direction (Right, Left, Front, Back) and a third level with the amount of food being carried (0%, 20%, 40%…). So, here is how my states look like.
1st lvl
2nd level (inside Carrying):
3rd level (inside playercarryingfront)
All transitions have been created manually (oh god) and set to TransitionDuration=0 and HasExitTime=false.
The problem I am having is, when my player is carrying food, for some reason, when transitioning between carrying and holding and viceversa, the default sprite in the SpriteRenderer appears. Thus, a flickering in the animation appears and the result is a weird experience.
My only guess is somehow the “Empty” state is being displayed which has a None animation and also should be instantaneous. However, all these animations are the same in Walking and Idle and they are working correctly.
Can some1 help me? Also, is there any other way no to be configuring manually all the 1000 repeated transitions between states?
Thanks in advance