From 77dfeb0afae6937600d2bfd847e0151c9214e36d Mon Sep 17 00:00:00 2001 From: Henrique Alves Date: Sun, 28 Jan 2024 15:36:18 +0200 Subject: Add instruction label --- game/MicrogameInstructionLabel.gd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 game/MicrogameInstructionLabel.gd (limited to 'game/MicrogameInstructionLabel.gd') diff --git a/game/MicrogameInstructionLabel.gd b/game/MicrogameInstructionLabel.gd new file mode 100644 index 0000000..491a5a9 --- /dev/null +++ b/game/MicrogameInstructionLabel.gd @@ -0,0 +1,8 @@ +extends Label + + +func show_instruction(instruction): + text = instruction + var tween = create_tween() + tween.tween_property(self, "modulate", Color.WHITE, 0.1) + tween.tween_property(self, "modulate", Color(1,1,1,0), 0.1).set_delay(2) -- cgit v1.2.3