From 518ad95f5a8d9406a8010c22537343493005dc01 Mon Sep 17 00:00:00 2001 From: Jonas Bernard Date: Mon, 26 Apr 2021 22:20:38 +0200 Subject: Sound effercts --- components/textreveal.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/textreveal.gd') diff --git a/components/textreveal.gd b/components/textreveal.gd index 7b96eb3..9b5bfaa 100644 --- a/components/textreveal.gd +++ b/components/textreveal.gd @@ -32,6 +32,8 @@ func _process(delta): var additional = int(t) t -= additional revealed += additional + if additional >= 1: + BackgroundMusic.type_sound() text = to_render.substr(0, revealed) rect_position = -rect_size / 2 + Vector2(xpos, ypos) if to_render.length() <= revealed: -- cgit