Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Sprint & Crouch + Additioanl quality fixes #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nicktesh
Copy link

Project Settings

  • Updated to Godot 4.3
  • Added Sprint and Crouch inputs
  • Adjusted viewport for fullscreen

Added Sprinting/Crouching mechanics

@export var sprint_speed: float = 7.0
@export var crouch_speed: float = 2.5

Dynamic speed change based on player input (sprint with Shift, crouch with Ctrl).

Implemented Jump Buffer

@export var jump_buffer_time: float = 0.2

Prevents rapid jump spamming, smoothing out jumping mechanics.

Player Stopping Logic

Added a threshold to stop movement when input magnitude is small (move_dir.length() < 0.1).

Adjusted Default Speed

Speed reduced from 10 m/s to 5 m/s for normal walking to feel more natural.

These changes improve movement responsiveness and add sprinting and crouching mechanics.

Added Sprinting/Crouching mechanics:
@export var sprint_speed: float = 7.0
@export var crouch_speed: float = 2.5

Dynamic speed change based on player input (sprint with Shift, crouch with Ctrl).

Implemented Jump Buffer:
@export var jump_buffer_time: float = 0.2
Prevents rapid jump spamming, smoothing out jumping mechanics.

Player Stopping Logic:
Added a threshold to stop movement when input magnitude is small (move_dir.length() < 0.1).

Adjusted Default Speed:
Speed reduced from 10 m/s to 5 m/s for normal walking.
These changes improve movement responsiveness and add sprinting and crouching mechanics.
Added Sprint and Crouch notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant