From b59bbb367325ff3f863a3f78821d93a4ac0c1367 Mon Sep 17 00:00:00 2001 From: Austin Dennis Date: Sat, 21 Sep 2024 17:31:43 -0400 Subject: [PATCH] Update character.gd for base_speed fix base_speed is assigned to speed before the default is updated to what is set in the export variable causing it to be the incorrect value. Calling enter_normal_state() on ready sets speed to the correct value before the player gains control. From my testing, this has no side effects. --- addons/fpc/character.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index 5a2775d..bb7efd5 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -117,6 +117,7 @@ func _ready(): CROUCH_ANIMATION.play("RESET") check_controls() + enter_normal_state() func check_controls(): # If you add a control, you might want to add a check for it here. # The actions are being disabled so the engine doesn't halt the entire project in debug mode