From d3f6967fe666595cf0862be57a3dae3bb23afd24 Mon Sep 17 00:00:00 2001 From: IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> Date: Sun, 17 Jul 2022 03:40:41 +0200 Subject: asset for the goal trigger --- godot/scenes/Die.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'godot/scenes/Die.gd') diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 21a408e..7d07a6f 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -32,8 +32,14 @@ func _ready(): mat = get_physics_material_override() previous_bounciness = mat.get_bounce() + func _input(event): + if _game.is_post_game(): + if event is InputEventMouseButton || event is InputEventKey: + _game.next_level() + return + if event is InputEventKey: if event.scancode == KEY_TAB: if event.is_pressed(): -- cgit