Hi. Using this guide from hiddenone I've discovered an issue with looping events which I hope can be resolved. Maybe someone can shed some light on this at least.
Below is a shortened version of the tutorial's example event, but it is functionally identical.
Basically, when the player pushes the "ok" key they can push or pull an object depending on input direction.
However, the "ok" key can be registered twice during the loop, which resets it and results in the player pushing or pulling the block at double speed. This happens frequently if the player is holding a direction key before pushing "ok" when pushing, but also occurs if you just double tap the "ok" key when pushing. Also occurs when pulling if you tap the "ok" again while in mid movement.
Here is the script in the event if you wanted to quickly recreate it for testing purposes:
Below is a shortened version of the tutorial's example event, but it is functionally identical.
Basically, when the player pushes the "ok" key they can push or pull an object depending on input direction.
However, the "ok" key can be registered twice during the loop, which resets it and results in the player pushing or pulling the block at double speed. This happens frequently if the player is holding a direction key before pushing "ok" when pushing, but also occurs if you just double tap the "ok" key when pushing. Also occurs when pulling if you tap the "ok" again while in mid movement.
Here is the script in the event if you wanted to quickly recreate it for testing purposes:
if (
($gamePlayer.direction() == 2 && Input.isPressed("down")) ||
($gamePlayer.direction() == 8 && Input.isPressed("up")) ||
($gamePlayer.direction() == 4 && Input.isPressed("left")) ||
($gamePlayer.direction() == 6 && Input.isPressed("right"))
) {
$gameVariables.setValue(5, 1);
}
if (
($gamePlayer.direction() == 2 && Input.isPressed("up")) ||
($gamePlayer.direction() == 8 && Input.isPressed("down")) ||
($gamePlayer.direction() == 4 && Input.isPressed("right")) ||
($gamePlayer.direction() == 6 && Input.isPressed("left"))
) {
$gameVariables.setValue(5, 2);
}