diff --git a/Objects/ladekast.tscn b/Objects/ladekast.tscn index e30085a..2e9757b 100644 --- a/Objects/ladekast.tscn +++ b/Objects/ladekast.tscn @@ -62,7 +62,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.82208, 0.982887) shape = SubResource("BoxShape3D_yanin") [node name="Sleutel" type="MeshInstance3D" parent="Kast/Drawer" index="1"] -transform = Transform3D(-4.68891e-08, 1.0727, -1.04848, -1.5, -6.55671e-08, 0, -4.58307e-08, 1.04848, 1.0727, -0.146821, 1.76439, 0.390332) +transform = Transform3D(-4.68891e-08, 1.0727, -1.04848, -1.5, -6.55671e-08, 0, -4.58307e-08, 1.04848, 1.0727, -0.146821, 1.80039, 0.390332) mesh = SubResource("ArrayMesh_3sr4p") skeleton = NodePath("") diff --git a/Scripts/Slot.gd b/Scripts/Slot.gd index 34989d7..ebb7cb8 100644 --- a/Scripts/Slot.gd +++ b/Scripts/Slot.gd @@ -15,5 +15,5 @@ func get_number(): func _on_static_body_3d_input_event(camera, event, position, normal, shape_idx): if event is InputEventMouseButton and event.is_action_pressed("interact"): $Body/Knop/Audio.playing = true - if true or get_number() == combination: + if get_number() == combination: $".."/Einde.eindig() diff --git a/Scripts/redherring.gd b/Scripts/redherring.gd index ccc39c3..41603af 100644 --- a/Scripts/redherring.gd +++ b/Scripts/redherring.gd @@ -10,7 +10,9 @@ func switch_fish(): func _on_knop_input_event(camera, event, position, normal, shape_idx): if event is InputEventMouseButton and event.is_action_pressed("interact"): $Music.playing = !$Music.playing + $"../Muziek".playing = !$Music.playing switch_fish() func _on_music_finished(): + $"../Muziek".playing = true switch_fish()