Prevent Player from facing camera in the Side Scroller template?
How can I prevent the character from facing the camera or facing away from the camera when switching directions? A very little switch in directions always results in the character facing the camera. Like this http://i.imgur.com/eoDaXSb.png
I want the character to always face either left or right based on the last directional input the player made. I was looking for a turn speed input.
I'm sure it's a pretty easy thing to fix, but I couldn't find an answer.
asked Oct 08 '14 at 04:39 PM in Blueprint Scripting
Here is how I got it to work: create a new variable and call it DirectionPrev, set its default value to -90.
Wire your blueprint as shown in the screenshot (it's pretty self-explanatory, but let me know if you need any explanations):
answered Oct 16 '14 at 08:06 PM
Hey, I think you can solve this problem by going to the defaults tab on your blueprint and setting "use controller rotation yaw" to true and "orient rotation to movement" to false.
answered Oct 16 '14 at 05:07 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here