Commit c3d5d8ba authored by Tanner Grehawick's avatar Tanner Grehawick

fix jump input, add player interpolation

parent 6b92d20c
......@@ -8,11 +8,20 @@ public class Jump : AbstractBehavior {
public float airJumpHeight = 5;
public int airJumpCount = 1;
bool jumpRequested;
int airJumpsMade = 0;
void Update() {
if (!jumpRequested && inputState.GetButtonPressed(inputButtons[0])) {
jumpRequested = true;
}
}
void FixedUpdate() {
if (inputState.GetButtonPressed(inputButtons[0])) {
if (jumpRequested) {
Activate();
jumpRequested = false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment