A tutorial on the basics of changing movement speed and activating a dash in Unreal Engine using C++. 1:37 Basics and Setup 6:10 Sprinting with C++ 14:05 Dashing with C++ 23:20 Just The Code
I've recently started learning UE with C++ but cannot find good examples or good docs like you normally find for web Dev material. Where should I look?
How can you make it so that you don't have to hold down the sprint button, and just press it when you start sprinting, and then press it again to stop sprinting?
For anyone who might have the same question, just create one sprint function with a Boolean called something like “bIsSprinting”. On the function call start with bIsSprinting=!bIsSprinting to toggle the variable between true and false. Then just have 2 of checks to set movement speed based on if the bool is true or false