Skip to content

Added Sprint & Crouch + Additioanl quality fixes#5

Open
nicktesh wants to merge 4 commits into
rbarongr:mainfrom
nicktesh:main
Open

Added Sprint & Crouch + Additioanl quality fixes#5
nicktesh wants to merge 4 commits into
rbarongr:mainfrom
nicktesh:main

Conversation

@nicktesh

Copy link
Copy Markdown

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