diff options
author | tpart <tpart120@proton.me> | 2024-09-20 21:38:41 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-20 21:39:18 +0200 |
commit | 2944e255e9afde09fe51bbac16be1e848baa7eab (patch) | |
tree | 467f25a7031db9ea8fbbdef53197a6eb1dcf21a4 /client/map/progress.gd | |
parent | a294ea6772b1bf1bccc6f43dad026e5574de15af (diff) | |
download | hurrycurry-2944e255e9afde09fe51bbac16be1e848baa7eab.tar hurrycurry-2944e255e9afde09fe51bbac16be1e848baa7eab.tar.bz2 hurrycurry-2944e255e9afde09fe51bbac16be1e848baa7eab.tar.zst |
Always play ding when making warn progress
Diffstat (limited to 'client/map/progress.gd')
-rw-r--r-- | client/map/progress.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/map/progress.gd b/client/map/progress.gd index d78c9e66..96edb574 100644 --- a/client/map/progress.gd +++ b/client/map/progress.gd @@ -47,6 +47,9 @@ func update(new_position: float, new_speed: float, new_warn: bool): var mat: ShaderMaterial = get_active_material(0) mat.set_shader_parameter("progress", position_) mat.set_shader_parameter("bad", warn) + + # Always play ding sound if item is making progress while warn + if warn and speed > 0.: ding_node.play_random() func _process(delta: float): position_ += delta * speed |