mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
17 lines
367 B
GDScript
17 lines
367 B
GDScript
extends RichTextLabel
|
|
|
|
func _ready() -> void:
|
|
visible_characters = 0
|
|
|
|
func _on_Plant_has_need(need_and_value) -> void:
|
|
print_message(need_and_value)
|
|
|
|
func print_message(mesage):
|
|
$Reveal.start()
|
|
text = text + "\n >" + str(mesage) + "\n "
|
|
|
|
|
|
func _on_Reveal_timeout() -> void:
|
|
if visible_characters <= text.length():
|
|
visible_characters += 1
|
|
else: $Reveal.stop()
|