Getting a caterpillar system and a run button working together

It's exactly as the title says: I've got an in-progress caterpillar system and run button, but they aren't properly working together.

GIF 8-17-2024 5-13-31 PM.gif

To be more precise, if you start running while already moving then your follower still moves at walking speed until they catch up with you. They only automatically run if you press the run button before you start moving.

I'm using this tutorial for followers, but slightly modified to account for the run button(this is placed in the event for the follower, right after the move route that turns the event to Through ON):
@> Conditional Branch: Switch [0006:Running] is ON
@> Set Move Route: [lillian], Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up
@>
: Else
@> Set Move Route: [lillian], Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up
@>
: Branch End
I'm not sure exactly where the run button comes from, I copy-pasted it from an older project, but I do know that it's a modified version of one of the the tutorials that's out there(split into two separate events, both Parallel Process with the second one being activated by Switch 0006:Running):
@> Key Input Processing: [0001:Running], Wait
@> Conditional Branch: Variable [0001:Running] == 7
@> Conditional Branch: Switch [0006:Running] is ON
@>
: Else
@> Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up, Speed Up
@> Control Switches: [0006:Running] = ON
@>
: Branch End
@>
: Else
@>
: Branch End
Part 2:
@> Key Input Processing: [0001:Running], Wait
@> Conditional Branch: Variable [0001:Running] == 7
@> Conditional Branch: Switch [0006:Running] is ON
@> Control Switches: [0006:Running] = OFF
@> Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up
@>
: Else
@>
: Branch End
@>
: Else
@>
: Branch End
If it's relevant, the starting room has a Parallel Process event that sets the walking speed:
@> Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up
Does anyone have any idea how to get these two things to work together? If I have to heavily modify the follower code and/or the running code then that's fine, it's just that nothing that I'm trying has been working.
Try this:
1723946117557.png

1723946201721.png
GIF 8-17-2024 7-27-01 PM.gif


I tried and it partially works, it's just that the follower slightly pauses and gets a bit desynced when you stop running
I'm really not sure if I understand your system, it seems like you made two events for the run button, which can generate conflicts, I also noticed that the player is walking at 3: x2 Slower and running at 4: Normal, so it is necessary to change the speed of the "Lillian" event.

A tip, turn the Switch off and on by movement, so that this happens in a synchronized way:
1723949810783.png



Code:
@> Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up, Switch OFF

Code:
@> Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up, Speed Up, Switch ON
I tried that and it's working now, thank you so much!!

(Also the second common event for running is dedicated to turning off the switch for running and resetting your speed, for some reason it wouldn't function properly if I had the entire run feature as just one common event)
There are two events conflicting, if you already have a Switch why create two events?
Using common logic:
Code:
Key[Variable], Wait
If[Variable]==7
   If[Switch] == OFF
      Move event: Player (Increase Speed)
   Else
      Move event: Player (Decrease Speed)
   End
End
I tried that and it works perfectly, thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/getting-a-caterpillar-system-and-a-run-button-working-together.171178/