diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 01:20:44 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 01:20:44 +0200 |
commit | 2a2e755584b07cabb778ff24af4f094ba9ac1ce1 (patch) | |
tree | 5530a4d53182b3277dc53e85ec5e7071767b9112 /components | |
parent | 4a16bb2a1284870377207af307dacebad37d423b (diff) | |
download | ldjam48-2a2e755584b07cabb778ff24af4f094ba9ac1ce1.tar.gz ldjam48-2a2e755584b07cabb778ff24af4f094ba9ac1ce1.tar.bz2 ldjam48-2a2e755584b07cabb778ff24af4f094ba9ac1ce1.zip |
Start game with introduction
Diffstat (limited to 'components')
-rw-r--r-- | components/button.tscn | 1 | ||||
-rw-r--r-- | components/textreveal.gd | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/components/button.tscn b/components/button.tscn index 0fda370..580ef29 100644 --- a/components/button.tscn +++ b/components/button.tscn @@ -28,7 +28,6 @@ texture = ExtResource( 1 ) [node name="Hitbox" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) - [connection signal="input_event" from="." to="." method="_on_ButtonTest_input_event"] [connection signal="mouse_entered" from="." to="." method="_on_ButtonTest_mouse_entered"] [connection signal="mouse_exited" from="." to="." method="_on_ButtonTest_mouse_exited"] diff --git a/components/textreveal.gd b/components/textreveal.gd index d76282a..ed048e1 100644 --- a/components/textreveal.gd +++ b/components/textreveal.gd @@ -31,7 +31,7 @@ func _process(delta): revealed += additional text = to_render.substr(0, revealed) rect_position = -rect_size / 2 - if to_render.length() == revealed: + if to_render.length() <= revealed: started = false finished = true emit_signal("finished_reveal") |