diff --git a/game/platform/color_switching_platform.gd b/game/platform/color_switching_platform.gd index fde0b0b..7a654e1 100644 --- a/game/platform/color_switching_platform.gd +++ b/game/platform/color_switching_platform.gd @@ -3,5 +3,13 @@ class_name ColorSwitchingPlatform extends AbstractColorPlatform +const SWITCH_TIME = 0.2 + + +func _ready() -> void: + super._ready() + icon_sprite.play(ANIMATION_COLOR_SWITCHING) + + func toggle() -> void: - collision_switcher.switch_color() + collision_switcher.switch_color(SWITCH_TIME) diff --git a/game/platform/color_switching_platform.tscn b/game/platform/color_switching_platform.tscn index fc2afa4..22da304 100644 --- a/game/platform/color_switching_platform.tscn +++ b/game/platform/color_switching_platform.tscn @@ -22,7 +22,6 @@ size = Vector2(16, 7) [node name="ColorSwitchingPlatform" unique_id=137546339 instance=ExtResource("1_6jqdv")] script = ExtResource("2_sbqh7") -initial_color = 0 [node name="Sprite2D" parent="." index="0" unique_id=264863796] texture = SubResource("ViewportTexture_svoke")