aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/item.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-01 19:38:06 +0200
committertpart <tpart120@proton.me>2024-07-01 19:38:11 +0200
commit90ea661221ebf29c26bc44308d31fcf04f79ca2c (patch)
tree68915f5332738a76b33bfe577ec88bc70cbbe2bc /client/map/items/item.gd
parent9a3a48e429c6aafd3fc469396d12548998e695aa (diff)
downloadhurrycurry-90ea661221ebf29c26bc44308d31fcf04f79ca2c.tar
hurrycurry-90ea661221ebf29c26bc44308d31fcf04f79ca2c.tar.bz2
hurrycurry-90ea661221ebf29c26bc44308d31fcf04f79ca2c.tar.zst
Add put plate sound effect
Diffstat (limited to 'client/map/items/item.gd')
-rw-r--r--client/map/items/item.gd9
1 files changed, 6 insertions, 3 deletions
diff --git a/client/map/items/item.gd b/client/map/items/item.gd
index d3acf200..7ab80fab 100644
--- a/client/map/items/item.gd
+++ b/client/map/items/item.gd
@@ -20,14 +20,17 @@ var owned_by: Node3D
var base: Node3D = Node3D.new()
var progress_instance: ProgressBar3D = preload("res://map/progress.tscn").instantiate()
-var sound_instance: PlayRandom = preload("res://audio/play_random.tscn").instantiate()
+var take_sound: PlayRandom = preload("res://audio/play_random.tscn").instantiate()
+var put_sound: PlayRandom = preload("res://audio/play_random.tscn").instantiate()
func _init(owned_by_: Node3D):
progress_instance.position.y = 1
progress_instance.visible = false
add_child(progress_instance)
- add_child(sound_instance)
- sound_instance.volume_db = -16
+ take_sound.volume_db = -16
+ put_sound.volume_db = -16
+ add_child(take_sound)
+ add_child(put_sound)
base.position = base_position()
add_child(base)
owned_by = owned_by_