Is there any current support for a toggle that changes the default movement option to run instead of walk? I'm considering adding in a toggle in my game that sets the default single mouse-click to either walk or run, and before I go too deep on my own I figured I'd ask if there's anything in the default Actions that could manage this. If not, do you have a suggestion for the simplest way to add that kind of custom action?
Another thing; whenever I double-click to run, I tend to always get one "walk footstep" SFX before the running SFX kick in - is there a way to prevent this in AC or am I better off just delaying the sound effect of the first step somewhat, so it doesn't have time to play before the player enters the running state?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
AC has a ToggleRun input, but this isn't available for Point And Click movement.
You can, however, create an Active Input that runs one of a pair of Player: Contrain Actions that set the Walk/Run option to either Always Walk or Always Run.
To have it cycle between these each time you invoke the input, create a Global Bool variable, check its value at the start, and then invert its value.
What's your AC version, and what method are you using to play footstep sounds - automatically, or via animation events?
Sorry for the late reply - your Constrain solution worked perfectly, thanks!
AC version v1.81.6; and automatically, just with timed SFX in the Player prefab.
The audio clip fields in the Player's Inspector have been superceded with the dedicated "Footstep sounds" component. This can play audio automatically based on movement, but the use of animation events is the way to get the most realistic behaviour.
A tutorial can be found here.
Sorry for the late reply, your help was much appreciated and I've solved it since!