Smooth transition between states, odd situation

anonymous_user_b9ec0951
Mon, 25 Oct 2021 20:07:54 +0000
Character & Animation

Hi. Hoping someone could help me figure this out. I have these two states in a state machine below. One is a running blendspace and the other is a shooting animation which also blends the player’s spine to face the enemy. To transition to the weapon_shoot state the player must be in the enemy line of sight.

Because both of these use the IdleRun_BS blendspace, when transistiong to the weapon_shoot state, the IdleRun_BS blendspace resets and plays from the start as seen from the below images. This gives me unpredictable legs jerks when switching between the two states.

Inside the idleRun_BS:

Inside the weapon_shoot:

Is there a way of turning the last frame of the IdleRun_BS state into a variable and setting the starting position of the animation in weapon_shoot state that variable?

2 posts - 1 participant