From 018d017255f9622a8019e846c4abe8b540183eae Mon Sep 17 00:00:00 2001 From: Moe Poi ~ Date: Sun, 19 Nov 2023 18:11:07 +0700 Subject: [PATCH] Add visual effects to slow effects on railgun v3 special abilities --- scripts/enemies/enemy.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/enemies/enemy.gd b/scripts/enemies/enemy.gd index 20837af..bceaf45 100644 --- a/scripts/enemies/enemy.gd +++ b/scripts/enemies/enemy.gd @@ -79,12 +79,14 @@ func slow(): slowTimer.stop() slowTimer.start() else: + $EnemyBody/AnimatedSprite2D.modulate = Color(0.0627, 0.3137, 0.4588, 1) speed = speed - (0.3 * speed) is_slow = true slowTimer.wait_time = 6.0 slowTimer.start() func _on_slow_timer_timeout(): + $EnemyBody/AnimatedSprite2D.modulate = Color(1, 1, 1, 1) speed = config.enemy[enemy_id]['speed'] is_slow = false