Making a character face the direction of movement in 2D
I'm new to UE and recently finished reading up on C++ so thought I'd have a stab at making something, after reading around it seemed like blueprints were the way to go to get a better understanding of what needs to be done before delving into actual code. I've been following a guide to make a 2D game from Game from scratch. The movement scheme used was very simple, that it for every key press (or release) the character would move some number of units. This is slow and doesn't feel good so I tried using input axes instead but now I cannot get the character to face the direction of movement.I looked at the documentation but it all seems to be for 3D. Attached is a picture of the blueprint, I'm guessing I need to split the axis value into two and somehow modify one of the outputs so that it turns the character around. Sadly I am at a loss as to how to do this. Any help would be appreciated, thanks!
asked Sep 06 '15 at 11:36 PM in Blueprint Scripting
The best practice, is by changing the sprite scale using the node "SetRelativeScale3D". And keep the actor itself as is!
Here is more info about that node:
But for more details about 2d character controller, I would recommend checking this quick video about building a 2d character controller:
Follow this question
Once you sign in you will be able to subscribe for any updates here