What I want exactly is this (my keyboard is AZERTY):
*When I press ‘Z’ the character start walking (the Idle_Walk Blend). That’s working fine .
*When I press ‘Space Bar’ the character jumps (a single animation for the jump). That’s also working fine .
*When I press ‘Shift’ The Character start running and when i release it he return to walk (I don’t know wich is better a walk_run blend or just the run annimation). I don’t have the idea to how to accomplish that .
*When I press ‘CTRL’ the character crouch and if I press ‘Z’ while holding ‘CTRL’ the character moves while crouching and when i release ‘CTRL’ he stands.
I have the following animations:
*from standing to crouching.
*Walk while crouching.
*from crouching to stand.
but also i didn’t figure out how to do what i want .
All the animations I use are from the Animation Starter Pack provided by Epic.
I’ll be very gratefull if you can help with this :o
and thankx for reading all of this
Here we go. First of all we do the crouching. I dont use the animation pack and the included animbp, because I dont have it on my pc and you will understand animbp’s after that
**This will probably solve your problem:
enable “can crouch” in the defaults from your character bp
add a key event - a “crouch” and “un crouch” node - create a new bool and connect it with pressed and released** – one set bool should be true and the other one false:
4.add a „cast do mycharacter“ node – get the bool variable that we have created in our mycharacter bp – create a new one in the anim bp – connect the get with the set and the set with the cast:
blue = variable created in the animbp
yellow = variable from the mycharacter (we got it from the cast)
add a new state (crouch) – add two links – in the link that points from the idle to crouch you have to add the bool variable and in the one that is pointing from crouch to idle the bool + a not bool node:
white – here you just have to add the bool variable (double click onto the little circle and in there you have to connect it)
After you did this setup you just have to create a idle/walk/run blendspace -> in my case: idle at 0 -> walk at 100 -> running at 300
Edit:
I have took a look at it and you just have to change the event + add those crouch/uncrouch nodes (but now with my first post you know the technique behind it ^^):
You have to add a walking animation ^^ -> because now it directly goes from idle to run. That’s why you get such a strange anim + change the axis range to e.g 300 -> because that’s the speed (= so at which speed the anim will play)
no no, at 0 it’s Idle and at 100 it’s walk, the run is in an other idle.
this is just when i press the z the character start walking
i tried to adjust the range at 30 , 100, 150, 250, 300 but always it’s the same problem
Set the speed to 100-200. Now place walking to 100 and the running to 200. Because otherwise the walking will just be played when the player isn’t moving. But acutally it doesnt make any sense to me what you are trying to achieve -> why dont you just place it into 1 blendspace. Because then you can “activate” the “2nd part” with the movement speed ^^
Or explain it to me a little bit more in depth what exactly you want to do
I’v got a weird problem
everything here works fine
but if i jump while I jog or run the jump animation will be repeted for ever (when i jump from idle it’s working fine!!)