- Home /
Animation problem in unity2D
Hi, I'm doing a 2d game. unfortunately, I have a problem with animation. when I press Alpha 2, The Gunidle bool will be true, and when I move, the GunRun animation will be played, but when I walk, GunRun animation doesn't work . as you![alt text][1] see in the picture i tried something and i failed. can you help me how can i do that correctly
https://prnt.sc/11rocop
https://prnt.sc/11rof93
https://prnt.sc/11ro8yi
https://prnt.sc/11rogod
Answer by cenkbz3589 · Apr 22, 2021 at 03:57 PM
Hey Guys, i know what the problem is. i was connecting any state to Gunidle. thats wrong you need to connect idle from the Gunidle.
Answer by ygokayo_unity · Apr 21, 2021 at 12:08 AM
You dont seem to be setting any value to the “GunRun” parameter, as far as the screenshot shows.
Try using the parameter “Speed” as a condition for those 2 transitions between GunRun & GunIdle states.
Your answer
![](https://koobas.hobune.stream/wayback/20220613032602im_/https://answers.unity.com/themes/thub/images/avi.jpg)