added player Finite State Machine

This commit is contained in:
2025-07-19 22:08:07 +10:00
parent 4a26cf0ddb
commit d2dc74d533
39 changed files with 496 additions and 376 deletions

View File

@@ -17,7 +17,7 @@ var tolerance: float = 50.0
var jumping: bool = false
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
tolerance = remap(character.health.current_health, character.health.max_health * 0.20, character.health.max_health, 10, 50)
tolerance = maxf(tolerance, 10)