#Blend tree transition is being interrupted
1 messages · Page 1 of 1 (latest)
I would think idle motion should be in the blend tree
Blend from idle to walk to run
I’m not sure what you want to do to be honest
It’s doing exactly what you tell it to do
because for a frame it switches back to idle because for some reason the speed variable changes to 0
I wouldn’t even use blend tree for this
well the blend tree isn't the problem
Let me ask you this what is your blend tree doing?
Or better yet why did you choose to use a blend tree?
So why not include the idle in here??
Wouldn’t it make more sense for it to be there?
And regardless what do you want to happen when horizontal and vertical are 0?
nothing
Clarify what nothing means
well i have a transition outside the blend tree that changes from idle to blend tree when speed is more than 0.01
Ok I understand that
and one for blend tree to idle if speed is less than 0.01
Ok
but for a frame when i change directions the speed variable changes to 0 causing the blend tree to idle transition to happen and i don't want that i want smooth turning
Not sure what smooth turning means
Like if you are moving left then want to go right your character would look down or up first?
my character changes to the idle animation for like a frame when he goes left to right or right to left
its because of movement.sqrmagnitude but i don't know how to fix it
Well with how you have it set up I don’t see a way around it. I wouldn’t use a blend tree here because you don’t want to blend motion to motion. You literally just want to go from motion to motion it seems
Or find better logic for the transitions
I usually try to do things from script and not use animation transitions
https://www.youtube.com/watch?v=whzomFgjT50 in this video it doesn't do that and he's using a blend tree
Let's have a look at the easiest and best way to make top-down movement in Unity!
Get costumized art for your game with Outstandly! https://www.outstandly.com/art_for_games/?Brackeys=love
👾 JOIN THE GAME JAM!! https://itch.io/jam/cgj
Thanks to everyone participating in the planning of the jam:
BlackThornProd: https://bit.ly/2GqgkqO
Dani: ht...
I don’t know what to tell you except you missed something in the tutorial
i don't know what i did wrong