So I recently added a stamina system to my game where you could sprint at the cost of using your stamina. However, mobile unlike PC where you can just hold shift on your keyboard I had to implement an entire new button.
Isn’t the move stick on mobile analog? I.e. it gives a movement vector less than 1 if you move it less. What if you made sprint always enabled on mobile. Users can manage their own walk speed by moving the stick less, and then you need no new buttons.
You could also hook into the control module and read the magnitude of the move vector to make it enable sprinting when the magnitude passes a certain threshold if always-on feels too fast all the time, or it’s too hard to move the stick carefully enough to walk.
That’s actually a great idea. I haven’t thought of that. I will for sure check that out. Thanks again for the advice.
EDIT:
I just checked it out and I was able to set it up where if the player was walking faster than (15) it would automatically turn on sprint mode. And if the speed goes back below (15), it turns off sprinting. Thank you again!