diff options
Diffstat (limited to 'client/player/character/character.gd')
| -rw-r--r-- | client/player/character/character.gd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/player/character/character.gd b/client/player/character/character.gd index 385481cc..11db638f 100644 --- a/client/player/character/character.gd +++ b/client/player/character/character.gd @@ -40,6 +40,7 @@ var current_animation := "idle" } @onready var step_sounds: PlayRandom = $Steps +@onready var boost_sounds: PlayRandom = $Boosts func _ready(): play_animation("idle") @@ -63,7 +64,11 @@ func _process(delta): next_animation = "idle" walking_particles.emitting = walking - boosting_particles.emitting = boosting and walking and not was_boosting + if boosting and walking and not was_boosting: + boosting_particles.emitting = true + boost_sounds.play_random() + else: + boosting_particles.emitting = false was_boosting = boosting and walking if current_animation != next_animation: |