How can I use Blueprints to create a strafing animation?
First post on the UE4 community, and I'm happy to be here.
So I'm working on a locomotion package for UE4, and I want to basically backwards engineer the ThirdPerson preset to include strafing animations. Binding these to the Q and E would be optimal, but I'm not even sure where to start with this!
Any help would be extremely appreciated, as I am really new to Blueprint and UE4 for that matter, thanks guys!
PS. I can provide pictures of my blueprints, but they are identical to the TPP defaults.
ok i'd advise you have a look at the shooter game demo, in there there's an example of the 3rd person which then uses a blendspace2d to blend between forward/backward & left/right running anims.
you'll also find more on the controlls. ps you might want to check the fps template (pick and mix)
answered Apr 21 '14 at 10:57 AM
Using yourCharacter from MyCharacter in the ThirdPerson project template, assigned in yourGameMode. Be sure to cast to yourPlayController from BeginPlay and call EnableInput.
This works relative to the current facing direction. In the example, you could unhook the == output of both Compare Floats to stop sliding on the ground when the character is not actually running, though I kind of like the surfing look so I included two speeds. You could setup a 'shuffle' animation to play I guess. When the velocity is greater than 0, the running strafe works just fine. Values could be tweaked I guess, but it seems to do the job. It still gives a little forward motion, which I think is better than pure running sideways. The key input is running forward or backward while holding comma or fullstop. Note that if you are using some kind of cinematic mode, these keys are not locked off by that (like the other motion input).
BTW - I just noticed that the direction of comma and fullstop would make sense being swapped round for left/right.
For my project i use velocity only from my character, and convert it's to Forward and Right value, the strafe it will be on X-Axis
answered Apr 22 '14 at 01:54 AM
Uh, these answers are good, but they only shed light on the solution. I.e @Duncan Dam this solution is literally just a picture... albeit a good blend-space implementation, however not answering the question in its entirety.
To get to the point (this guy hits the nail on the head): https://answers.unrealengine.com/questions/32458/third-person-preset-blueprint-strafing-animation.html
This is a duplicate post: https://answers.unrealengine.com/questions/197379/leftright-strafe-animations.html#answer-476670
answered Aug 27 '16 at 06:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here