commit f548d915bddf4f09128ce9892135692db1e98c7a
parent a49478574d4c5d5d167b98bb30b6cf689e7eaf67
Author: FIGBERT <figbert@figbert.com>
Date: Sat, 28 Nov 2020 23:23:51 -0800
Remove win delay after collecting all coins
Diffstat:
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/Level.tscn b/Level.tscn
@@ -811,8 +811,6 @@ script = ExtResource( 11 )
__meta__ = {
"_edit_use_anchors_": false
}
-
-[node name="Timer" type="Timer" parent="Control/Counter"]
[connection signal="body_entered" from="Enemies/Enemy 1" to="Character" method="_on_enemy_body_entered"]
[connection signal="body_entered" from="Enemies/Enemy 2" to="Character" method="_on_enemy_body_entered"]
[connection signal="body_entered" from="Enemies/Enemy 3" to="Character" method="_on_enemy_body_entered"]
@@ -834,4 +832,3 @@ __meta__ = {
[connection signal="coin_collected" from="Coins/Coin 13" to="Control/Counter" method="_on_coin_collected"]
[connection signal="coin_collected" from="Coins/Coin 14" to="Control/Counter" method="_on_coin_collected"]
[connection signal="coin_collected" from="Coins/Coin 15" to="Control/Counter" method="_on_coin_collected"]
-[connection signal="timeout" from="Control/Counter/Timer" to="Control/Counter" method="_on_timer_timeout"]
diff --git a/scripts/Counter.gd b/scripts/Counter.gd
@@ -9,8 +9,4 @@ func _on_coin_collected():
coins += 1
_ready()
if coins == 15:
- $Timer.start()
-
-
-func _on_timer_timeout():
- get_tree().change_scene("res://YouWin.tscn")
+ get_tree().change_scene("res://YouWin.tscn")