diff options
| author | tpart <tpart120@proton.me> | 2026-01-18 20:52:48 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2026-01-18 20:52:48 +0100 |
| commit | 80045291ff796c7169126118ce400fd80fcc24d6 (patch) | |
| tree | 61db2bceefb290c5dcd5aeb01743642fd3d9998d /client | |
| parent | e79537c59ad1aa3aa28c84124476a1b62347c66e (diff) | |
| download | hurrycurry-80045291ff796c7169126118ce400fd80fcc24d6.tar hurrycurry-80045291ff796c7169126118ce400fd80fcc24d6.tar.bz2 hurrycurry-80045291ff796c7169126118ce400fd80fcc24d6.tar.zst | |
Fix problems with boosting while walking around corners
Diffstat (limited to 'client')
| -rw-r--r-- | client/player/player.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/player/player.gd b/client/player/player.gd index c8f61ca7..dd705423 100644 --- a/client/player/player.gd +++ b/client/player/player.gd @@ -34,6 +34,7 @@ var rotation_anim = 0. var position_ = Vector2(0, 0) var position_anim = Vector2(0, 0) var boosting := false +var boost_pressed := false # only used in non-controllable players var walking := false var username: String @@ -127,7 +128,7 @@ func _ready(): func update_position(new_position: Vector2, new_direction: Vector2, new_rotation: float, new_boosting: bool): position_ = new_position rotation_ = new_rotation - boosting = new_boosting + boost_pressed = new_boosting direction = new_direction func update_movement(dt: float, boost: bool): @@ -253,7 +254,7 @@ func _process(delta): delta -= dt func _process_movement(dt): - update_movement(dt, boosting) + update_movement(dt, boost_pressed) func item_message(item_name: String, timeout_initial: float, timeout_remaining: float): if item_bubble != null: |