This commit is contained in:
JoeMama
2025-10-12 15:10:57 +01:00

View File

@@ -70,10 +70,11 @@ func bridge_piece_fall(node: Node2D) -> void:
const BRIDGE_DESTRUCTION_PARTICLE = preload("uid://cwfjdgsyh35h6") const BRIDGE_DESTRUCTION_PARTICLE = preload("uid://cwfjdgsyh35h6")
func bridge_piece_break(node: Node2D) -> void: func bridge_piece_break(node: Node2D) -> void:
var particle = BRIDGE_DESTRUCTION_PARTICLE.instantiate() if Settings.file.visuals.extra_particles == 1:
particle.global_position = node.global_position var particle = BRIDGE_DESTRUCTION_PARTICLE.instantiate()
particle.process_mode = Node.PROCESS_MODE_ALWAYS particle.global_position = node.global_position
add_sibling(particle) particle.process_mode = Node.PROCESS_MODE_ALWAYS
add_sibling(particle)
node.modulate.a = 0 node.modulate.a = 0
func _physics_process(delta: float) -> void: func _physics_process(delta: float) -> void: