added breakable objects

This commit is contained in:
derek
2024-07-16 16:47:12 -05:00
parent afe19d8848
commit 262abd7d95
25 changed files with 2149 additions and 17 deletions

View File

@@ -0,0 +1,16 @@
extends Node3D
@export var sound : Node
@export var pitch_scale_amt = .5
var rng = RandomNumberGenerator.new()
# Called when the node enters the scene tree for the first time.
func _ready():
if sound != null:
sound.pitch_scale = 1 + rng.randf_range(-pitch_scale_amt,pitch_scale_amt)
sound.play()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass