Add visual effects to slow effects on railgun v3 special abilities

This commit is contained in:
Moe Poi ~ 2023-11-19 18:11:07 +07:00
parent a281d40bf5
commit 018d017255

View file

@ -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