als je zo nodig moet weten wat ga je alles maar doorlezen ofzo.
This commit is contained in:
2023-02-04 22:35:42 +01:00
parent 2ea631b8e3
commit 800bf98f84
23 changed files with 463 additions and 65 deletions
+4 -2
View File
@@ -1,10 +1,11 @@
extends CharacterBody3D
const WALK_SPEED = 5.0
const WALK_SPEED = 3.0
const MOUSE_SENS = 0.002
var has_flashlight = false
var has_key = false
@onready var flashlight = $"../FlashLight"
var mouse_mode = 2
@@ -30,7 +31,8 @@ func _physics_process(delta):
move_and_slide()
func _on_flash_light_input_event(camera, event, position, normal, shape_idx):
print("joehoe")
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Pivot/Camera/FlashLight.visible = true
has_flashlight = true
if flashlight:
flashlight.visible = false
-1
View File
@@ -16,5 +16,4 @@ 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 get_number() == combination:
$Lamp.light_color = Color.LIGHT_GREEN
$Congratulations.playing = true