I found the scripts in the js files.
To check which direction the player is facing, use
where 2 = down, 4 = left, 6 = right, 8 = up (like the numbers on the keypad).
For button presses, it's
where KEY can be e.g. "down", "left", "right", "up".
Now the event commands can be shortened like this:
To check which direction the player is facing, use
Code:
$gamePlayer.direction() === DIRECTION
For button presses, it's
Code:
Input.isPressed(KEY)
Now the event commands can be shortened like this:
◆If:Button [Shift] is pressed down
◆Control Switches:#0001 Sprinting = ON
◆
:End
◆If:Sprinting is ON
◆If:Script:$gamePlayer.direction === 2 || Input.isPressed("down")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Down
◆
:End
◆If:Script:$gamePlayer.direction === 4 || Input.isPressed("left")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Left
◆
:End
◆If:Script:$gamePlayer.direction === 6 || Input.isPressed("right")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Right
◆
:End
◆If:Script:$gamePlayer.direction === 8 || Input.isPressed("up")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Up
◆
:End
◆Wait:3 frames
◆If:Script:!$gamePlayer.isMoving()
◆Control Switches:#0001 Sprinting = OFF
◆Set Movement Route:Player (Skip)
◆
:End
◆
:End
◆Control Switches:#0001 Sprinting = ON
◆
:End
◆If:Sprinting is ON
◆If:Script:$gamePlayer.direction === 2 || Input.isPressed("down")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Down
◆
:End
◆If:Script:$gamePlayer.direction === 4 || Input.isPressed("left")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Left
◆
:End
◆If:Script:$gamePlayer.direction === 6 || Input.isPressed("right")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Right
◆
:End
◆If:Script:$gamePlayer.direction === 8 || Input.isPressed("up")
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Up
◆
:End
◆Wait:3 frames
◆If:Script:!$gamePlayer.isMoving()
◆Control Switches:#0001 Sprinting = OFF
◆Set Movement Route:Player (Skip)
◆
:End
◆
:End