How do I make my character only sprint in one direction?
How would I make my character only sprint forward. I know in Fortnite, you can’t sprint with left, right, and backwards. I want to make it like that. I know how to change the speed of my character to sprinting, but not only for forward. Thanks!
asked Oct 28 '18 at 05:45 PM in Blueprint Scripting
I like to control inputs with a bool. This way any time I want I can turn off execution for any input. This has a lot of uses, like for stuns, menus, etc.. When moving left or right simply disable the input bool for sprinting. There's probably some testing you need to do to find scenarios this wont work with and fix them. This isn't also to say the only way to do it, like most things in the engine it can be done a million ways, just go with what works and makes sense for your project.
Follow this question
Once you sign in you will be able to subscribe for any updates here