summaryrefslogtreecommitdiff
path: root/game/MicrogameInstructionLabel.gd
diff options
context:
space:
mode:
authorHenrique Alves <henrique.alves@itsjungle.xyz>2024-01-28 15:36:18 +0200
committerHenrique Alves <henrique.alves@itsjungle.xyz>2024-01-28 15:36:18 +0200
commit77dfeb0afae6937600d2bfd847e0151c9214e36d (patch)
tree2a963ea845a96e0ead6a5748a9bfca4a139b6b20 /game/MicrogameInstructionLabel.gd
parent39c5ed20a2eed5e5f358e2f00956f833ba60373b (diff)
downloadgamejam-ggj-2024-77dfeb0afae6937600d2bfd847e0151c9214e36d.tar.gz
gamejam-ggj-2024-77dfeb0afae6937600d2bfd847e0151c9214e36d.tar.bz2
gamejam-ggj-2024-77dfeb0afae6937600d2bfd847e0151c9214e36d.zip
Add instruction label
Diffstat (limited to 'game/MicrogameInstructionLabel.gd')
-rw-r--r--game/MicrogameInstructionLabel.gd8
1 files changed, 8 insertions, 0 deletions
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)