I’m trying to implement a crouching animation into my character the actual crouch seems to be working but using blendspace to transition from crouch idle to crouch walk shows working in blendspace but when i play to test my character just slides around crouched please any input been trying to fix this for days with no luck
Hello @xXd3ad1y_d0moXx can you send pictures of your blendspace and animation blueprint to see where the problem is coming from ?
Here is how you can do it if you are using the default thrid person character it will be different if you are using your own character in that case you will have to send photos.
-
Go to BP_ThirdPersonCharacter and create a bool variable called isCrouching with default value of false.
-
When the player presses left ctrl we will set it to true and we will call Crouch(this is default function that will change the Capsule Component Size and the player speed) and when he releases left ctrl we will set it back to false and call Un Crouch.
-
Create a Blend Space 1D by right clicking in the content browser and going to:
animation → legacy → Blend Space 1D → SK_Mannequin -
In the asset details panel under Horizontal axis we need these settings:
-
Put your idle anim in the begging of the timeline and the walk anim in the end
-
Go to your ABP_Manny(The default Animation blueprint)
In event graph we need to do a few things:
-
Replace the cast to character node with BP_ThirdPersonCharacter
-
Under Variables → References change the character variable type to be BP_ThirdPersonCharacter
-
Create a variable as bool type and call it isCrouching
-
Make another pin out of the sequence and set the variable we just created to isCrouching in our character
- Go to Anim Graph → Main states and out of Locomotion drag an arrow and select “Add State” and call it Crouch and then from Crouch to Locomotion make another arrow
-
Locomotion to Crouch arrow code:
-
Crouch to Locomotion arrow code:
- Go back to the main state double click crouch and add in the blendespace with the ground speed plugged in
And that should be it @xXd3ad1y_d0moXx
this helped i forgot to add the NOT part and it was causing an error that i had overlooked thank you!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.