I would like my character to Run when Keyboard key Shift or Xbox controller 'Right Trigger' is held down, and upon release the player return to a walk.
I read the forum post about custom scripts for a held key but I can't understand how to implement this.
https://adventurecreator.org/forum/discussion/5619/action-as-long-as-key-is-pressedSo... In the meantime...
I created a ToggleRun Global, ActionList and InputMnager entry, which can be used to switch from one setting to another nicely.
However, I have tried to set up in the InputManager to do the ToggleRun on the Xbox controller 'Right Trigger' - but 'Right Trigger' is Axis 10 (in Windows -
http://wiki.unity3d.com/index.php?title=Xbox360Controller) I am unsure what to set Dead and Sensitivity to, if this would work at all anyway?
I would still like to Run only when a key or 'Right Trigger' is held down anyway, and still need to work out how to trigger AC action lists from the Xbox controllers 'Triggers'.
Any help or pointers much appreciated...
Comments
My AC settings are Movement - Direct mode, my legacy charcter has Wall/Run set to Free in player constrains. Movement settings are using 'Tank controls'
Try loading up the 3D Demo from the top toolbar, but set the Movement method to Direct. Does Run work as expected there, once the intro has finished?
That it reverts to the correct speed after re-focusing the window suggests that it could be a system issue. Is the mouse-cursor within the game window the whole time? Have you tried running the build on any other machine?