summaryrefslogtreecommitdiff
path: root/components/textreveal.gd
diff options
context:
space:
mode:
authorJonas Bernard <public.jbernard@web.de>2021-04-26 22:20:38 +0200
committerJonas Bernard <public.jbernard@web.de>2021-04-26 22:20:38 +0200
commit518ad95f5a8d9406a8010c22537343493005dc01 (patch)
treed5728a22e87aa99e71a603c85461fc0fe69db89a /components/textreveal.gd
parent6fb5e447659efe06045b22a8cac7ef4d7a4445db (diff)
downloadldjam48-518ad95f5a8d9406a8010c22537343493005dc01.tar.gz
ldjam48-518ad95f5a8d9406a8010c22537343493005dc01.tar.bz2
ldjam48-518ad95f5a8d9406a8010c22537343493005dc01.zip
Sound effercts
Diffstat (limited to 'components/textreveal.gd')
-rw-r--r--components/textreveal.gd2
1 files changed, 2 insertions, 0 deletions
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: