Block running in follow mode
This commit is contained in:
parent
21b1313a18
commit
50147db895
@ -51,8 +51,9 @@ export class Player extends Character {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Compute movement deltas
|
// Compute movement deltas
|
||||||
const speedMultiplier = activeEvents.get(UserInputEvent.SpeedUp) ? 25 : 9;
|
const followMode = get(followStateStore) !== followStates.off;
|
||||||
const moveAmount = speedMultiplier * 20;
|
const speedup = activeEvents.get(UserInputEvent.SpeedUp) && !followMode ? 25 : 9;
|
||||||
|
const moveAmount = speedup * 20;
|
||||||
x = x * moveAmount;
|
x = x * moveAmount;
|
||||||
y = y * moveAmount;
|
y = y * moveAmount;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user