Problems with sprinting event.

I am currently using the "Key Simulator" (Virtual Key) script in an attempt to achieve this, the script was created by Fantasist and can be found here : https://forum.chaos-project.com/index.php?topic=2310.0

The goal with this event is to create a sprinting event that is active when the player is pressing left shift, which allows the player to sprint, but when the player releases the left shift key, it turns off a switch and slows down the player to default speed.


However,

When i attempt to sprint within the game, the player remains at default speed.

If it helps at all, I have attached a complete image of the event.

Thanks in advance,

- FrozenNuke0327
you completely misunderstood the purpose of the script, it cannot work with your event.

The script commands simulate that a key has been pressed without that key really having been pressed.
As such there is of course no return info.

Your event on the other hand needs a command that checks if the player has pressed the real key on his keyboard - that can't be checked at all with that script.
Thank you!

The event is working perfectly now.

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-sprinting-event.96306/