flashlight click
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://bdv56js62pg7u"
|
||||
path="res://.godot/imported/flashlight-click.wav-7b7c3d945684ccc5a12767aaa6067ea7.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Audio/flashlight-click.wav"
|
||||
dest_files=["res://.godot/imported/flashlight-click.wav-7b7c3d945684ccc5a12767aaa6067ea7.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cyx2nwgc7djsw"
|
||||
path="res://.godot/imported/pickup.wav-44fc4d7b22c02c1d2c72f18a7da212c0.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Audio/pickup.wav"
|
||||
dest_files=["res://.godot/imported/pickup.wav-44fc4d7b22c02c1d2c72f18a7da212c0.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
+8
-1
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://4o2ljtcup5bo"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://4o2ljtcup5bo"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_jx17t"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdv56js62pg7u" path="res://Audio/flashlight-click.wav" id="2_osxy2"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_x6nb0"]
|
||||
radius = 0.05
|
||||
@@ -35,6 +36,12 @@ spot_range = 8.91
|
||||
spot_angle = 15.0
|
||||
spot_angle_attenuation = 3.13833
|
||||
|
||||
[node name="Klik" type="AudioStreamPlayer3D" parent="Pivot/Camera/FlashLight"]
|
||||
stream = ExtResource("2_osxy2")
|
||||
volume_db = -6.257
|
||||
unit_size = 1.77
|
||||
panning_strength = 3.0
|
||||
|
||||
[node name="AudioListener3D" type="AudioListener3D" parent="Pivot/Camera"]
|
||||
current = true
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ func _input(event):
|
||||
mouse_mode = mouse_mode ^ 1
|
||||
Input.set_mouse_mode(mouse_mode)
|
||||
elif event.is_action_pressed("alt") and has_flashlight:
|
||||
$Pivot/Camera/FlashLight/Klik.playing = true
|
||||
$Pivot/Camera/FlashLight/SpotLight3D.visible = !$Pivot/Camera/FlashLight/SpotLight3D.visible
|
||||
|
||||
func _physics_process(delta):
|
||||
|
||||
Reference in New Issue
Block a user