Updated move interval
This commit is contained in:
parent
b3c9e3ca3d
commit
b27a2e8779
@ -42,7 +42,7 @@ export function useGameControlsComposable(scene: Phaser.Scene, layer: Phaser.Til
|
||||
|
||||
// Start movement loop if not already running
|
||||
if (!moveInterval) {
|
||||
moveInterval = window.setInterval(moveCharacter, 75) // Increased interval to match server throttle `MOVEMENT_THROTTLE`
|
||||
moveInterval = window.setInterval(moveCharacter, 80) // Increased interval to match server throttle `MOVEMENT_THROTTLE`
|
||||
moveCharacter() // Move immediately on first press
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user