splishy splashy

This commit is contained in:
2023-02-07 16:54:29 +01:00
parent dace1fa599
commit 4fb34f2ffc
67 changed files with 1063 additions and 102 deletions
+3 -8
View File
@@ -1,17 +1,12 @@
extends Node3D
var secret
func _ready():
secret = randi() % 10000
#$".."/CombiCode.mesh.text = "%04d" % combination #met leading 0'en
func _on_static_body_3d_input_event(camera, event, position, normal, shape_idx):
func _on_static_body_3d_input_event(_camera, event, _position, _normal, _shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
print("Laatje!")
$Kast/Drawer.position.z = abs($Kast/Drawer.position.z - 1.0)
func _on_sleutel_input_event(camera, event, position, normal, shape_idx):
func _on_sleutel_input_event(_camera, event, _position, _normal, _shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Kast/Drawer/Sleutel.visible = false
get_node("../Player").has_key = true