alternative fix

This commit is contained in:
RandomityGuy 2025-03-17 20:07:49 +05:30
parent 06fb5533bc
commit e29bee441d

View file

@ -2151,17 +2151,19 @@ class Marble extends GameObject {
move.d.y = -Gamepad.getAxis(Settings.gamepadSettings.moveXAxis);
if (@:privateAccess !MarbleGame.instance.world.playGui.isChatFocused()) {
if (Key.isDown(Settings.controlsSettings.forward)) {
move.d.x = 1;
move.d.x -= 1;
}
if (Key.isDown(Settings.controlsSettings.backward)) {
move.d.x = 1;
move.d.x += 1;
}
if (Key.isDown(Settings.controlsSettings.left)) {
move.d.y = 1;
move.d.y += 1;
}
if (Key.isDown(Settings.controlsSettings.right)) {
move.d.y = 1;
move.d.y -= 1;
}
move.d.x = Util.clamp(move.d.x, -1, 1);
move.d.y = Util.clamp(move.d.y, -1, 1);
if (Key.isDown(Settings.controlsSettings.jump)
|| MarbleGame.instance.touchInput.jumpButton.pressed
|| Gamepad.isDown(Settings.gamepadSettings.jump)) {