diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-19 15:24:50 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-19 15:24:50 +0100 |
commit | 72863ffa31e27f4c6be862d80472cfb897fccaea (patch) | |
tree | ce04be8d77b10c797c8ff854c8ff1a219eb1af46 /Effects/SlowEffect.gd | |
parent | 63d2a59042fb9d90a586ad85d8364de7c38aea8e (diff) |
Diffstat (limited to 'Effects/SlowEffect.gd')
-rw-r--r-- | Effects/SlowEffect.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Effects/SlowEffect.gd b/Effects/SlowEffect.gd index 622a97e..fd33fe6 100644 --- a/Effects/SlowEffect.gd +++ b/Effects/SlowEffect.gd @@ -24,10 +24,10 @@ func _ready(): func add(): - unit.sprite.self_modulate = Color(0, 0, 1) + unit.sprite.modulate += Color(0, 0, 1, 0) unit.speed -= unit.base_speed * magnitude func remove(): - unit.sprite.self_modulate = Color(1, 1, 1) + unit.sprite.modulate -= Color(0, 0, 1, 0) unit.speed += unit.base_speed * magnitude |