x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Call animation using input keys

Hi guys,

I am a noob to node based programming. So please bare with my ignorance. I have consumed a ton of info on this topic before resorting to asking for help here.

I need to be able to press the 'A' key, and have my character play a strafing animation.

Here are some images of my character animation blueprint alt text

and my character bp event graph alt text

To be clear, my character moves absolutely fine, it's just his strafe animation that won't play when he strafes. His jump animation works perfectly because I copied everything there straight from an unreal tutorial. Also, his strafe animation plays fine if I make true the default for the bool 'Is Strafing Left'

I would really appreciate any input/advice.

Product Version: UE 4.12
Tags:
more ▼

asked Nov 11 '16 at 03:20 AM in Blueprint Scripting

avatar image

KingOfHz
28 1 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Mate, this tutorial should help you: https://www.youtube.com/watch?v=2YQH_ADNkXE

Instead of using the Punch animation you obviously want to use the Strafing Left and right animation, then I guess just follow the rest of the tutorial, you may find that if you press the button and your not moving the animation may still play but you wont be moving, if that does happen you will probably need to make a Strafing idle animation and make an animation which kind of states when in Strafing left or right but not moving play idle animation this is just a quick sketch, but there the fundamentals. Hope that helps.

more ▼

answered Nov 11 '16 at 12:38 PM

avatar image

hazhunt
91 9 8 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question