From 84365b6f901a9c0251a9f724a8d9f81a3787e97d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 3 Nov 2024 14:10:07 +0100 Subject: next commit --- Stages/Stage.gd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Stages/Stage.gd') diff --git a/Stages/Stage.gd b/Stages/Stage.gd index a3608ee..3d3eceb 100644 --- a/Stages/Stage.gd +++ b/Stages/Stage.gd @@ -45,6 +45,13 @@ func _place_tower(parent: Node2D, tower: Tower): tower.get_node("ComponentsAnchor").modulate = player.get_color() fill_tower_region(tower, true) + + var particles = preload("res://Towers/PlacementParticles.tscn").instantiate() + particles.global_position = tower.get_node("GroundAnchor").global_position + particles.play_sound = multiplayer.get_unique_id() == tower.owner_id + particles.scale = tower.scale + parent.add_child(particles) + parent.add_child(tower, true) -- cgit v1.2.3