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"

How do I make my animation blueprint change animation depending on speed relative to the direction my character is facing?


I am a newbie at coding with blueprints (and in general) and I have been following the twin stick shooter tutorial series to get a ground strukture for my game. I have run into a problem with the animations however. Compared to the tutorial my project is exactly the same except I want to rotate my character towards my mouse and not with a controller. With this I have succeded. When setting up the animation blueprint the tutorial uses a "GetActorRotation" to make sure the move forward animation is playing even though the character is moving down but facing the direction he is going in.

I cannot use a "GetActorRotation" since I dont set the actor rotation where the tutorial does. I use a set world rotation instead. Therefore my character does not play the walk forward animation unless he is walking forward on the world X axis. My question is how do I get around this problem? (the video link is what happens if i change "SetWorldRotation" to "SetControlRotation") https://gyazo.com/f65e9c7d386772ec589847b0fd9c1c83 alt text alt text

Product Version: UE 4.15
rotation.png (246.2 kB)
animation.png (199.3 kB)
more ▼

asked Mar 26 '17 at 10:19 PM in Blueprint Scripting

avatar image

1 1

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

0 answers: sort voted first
Be the first one to answer this question
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