A momentum-running system

Hi, I'm currently working on a strictly labor-of-love project based on Sonic The Hedgehog. I was hoping to make it so that basically, rather than using a button to go from walking to running speed, my characters would do so automatically after holding down the arrow keys long enough. Is there any way to do that with events?
Sounds like something that shouldn't be done with orthographic tile-based movement.

Moving like Sonic (or a very inertial pinball with spiky hair attached) pretty much relies on moving without being bound to tiles. So you sure to do it anyway?

Okay, let's gotta go fast. Everything you need for the basics is variables that go up the longer the player moves on X or Y, go down when there is no move-inputs coming, also smash down to 0 when running into a wall. One might ask how to even measure the amount of movement taken with RPG2000/2003 and yes that's gonna be a big pile of "fun".

In case you manage to setup this stuff, you can then easily scan the variables in a parallel-running event to decide how fast the player-character should move and change the settings based on that.

But now here comes another flaw of using something like the default systems of RPG2000/2003, you only have a total of six very different speed-levels available, they are everything what's possible to do without tossing the entire tile-system including collision and everything overboard.

One thing I can almost promise in advance is that the concept of Sonic (a character infamous for having big issues with gameplay-fun even in many official titles) won't be fun to play with a technical base of tilebased movement made for simply walking from A to B in an RPG without much active action involved.

The instructionset of event-commands you can use is powerful enough to build complex stuff on your own, but it will never get easier from this point, at latest from here you should ask yourself if an RPG Maker is the right choice for what you are doing.

Making popcorn... with an old rice-cooker... and holding the instructions upside-down... written in a foreign language... can... work... maybe... sometimes, but never was the best way.

~炬燵あ
Basically, I just want my characters to have a walking speed, and a running speed, and to be able to reach these speeds by holding down the movement keys for a couple of second, instead of using a dedicated button for them, because I wanted to use the shift key for a jump function. Mostly because I'm hoping to put some top-down platforming in my maps between battles. Moving platforms, falling platforms, land of differing heights, that sort of thing.

Original thread: https://forums.rpgmakerweb.com/threads/a-momentum-running-system.147137/