Sound updated
This commit is contained in:
parent
f8c2e7b2a1
commit
b4aa41b5b4
|
@ -16,7 +16,7 @@ func _ready() -> void:
|
||||||
func collect():
|
func collect():
|
||||||
print("Collected crystal")
|
print("Collected crystal")
|
||||||
value += addAmount
|
value += addAmount
|
||||||
if randf() > 0.5:
|
if value != 100.0:
|
||||||
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo.wav")
|
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo.wav")
|
||||||
else:
|
else:
|
||||||
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo 2.wav")
|
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo 2.wav")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user