Updates!
als je zo nodig moet weten wat ga je alles maar doorlezen ofzo.
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user