I had a thought about a running mechanic for my game. Rather than having the character in a constant sprint, or using the Thimbleweed Park double-click-to-run feature, what if you could toggle a running mode just by holding a key on the keyboard? Clicking without walks, but holding shift and clicking runs.
Is there a way to do that? If it also changed the cursor icon to reflect the toggle that would be even better!
Thank you guys so much!! :-D
The basic idea is to check for IsKeyPressed(403) || IsKeyPressed(404) when you process a left click in walk mode. Depending on true or not, change the player's view / movement speed accordingly before sending them off with player.Walk().
You will also have to reset to normal walk speed after they stop, if walking somewhere triggers a cutscene where the player also walks (since they'd still run otherwise)
Quote from: Khris on Tue 15/03/2022 21:29:27
The basic idea is to check for IsKeyPressed(403) || IsKeyPressed(404) when you process a left click in walk mode. Depending on true or not, change the player's view / movement speed accordingly before sending them off with player.Walk().
You will also have to reset to normal walk speed after they stop, if walking somewhere triggers a cutscene where the player also walks (since they'd still run otherwise)
This is awesome! Thank you so much!