Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
f3c0ee4bec
|
@ -22,5 +22,6 @@ script = ExtResource("1_qy0dt")
|
|||
|
||||
[node name="audioJungle" type="AudioStreamPlayer" parent="CanvasLayer/ProgressBar"]
|
||||
stream = ExtResource("2_ekcnp")
|
||||
volume_db = -20.0
|
||||
|
||||
[connection signal="value_changed" from="CanvasLayer/ProgressBar" to="CanvasLayer/ProgressBar" method="_on_value_changed"]
|
||||
|
|
|
@ -16,7 +16,7 @@ func _ready() -> void:
|
|||
func collect():
|
||||
print("Collected crystal")
|
||||
value += addAmount
|
||||
if randf() > 0.5:
|
||||
if value != 100.0:
|
||||
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo.wav")
|
||||
else:
|
||||
Player.stream = load("res://collectables/crystal/sounds/Picked Coin Echo 2.wav")
|
||||
|
|
Loading…
Reference in New Issue
Block a user