diff options
Diffstat (limited to 'components/textreveal.gd')
-rw-r--r-- | components/textreveal.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/textreveal.gd b/components/textreveal.gd index 3520882..ab346f0 100644 --- a/components/textreveal.gd +++ b/components/textreveal.gd @@ -40,8 +40,8 @@ func _process(delta): if additional > 0: if text.ends_with("\n"): t = -7 - elif text.ends_with(" "): - t = -1 + if text.ends_with(" "): + t += 1 rect_position = -rect_size / 2 + Vector2(xpos, ypos) if to_render.length() <= revealed: started = false |