aboutsummaryrefslogtreecommitdiff
path: root/scripts/movement.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
commit90af765b430e3a75daa9b2b4d0343ae58ad5c33d (patch)
tree024e803ce9b7476ed310fc156b54eb5ebced3c4f /scripts/movement.gd
parent7cb4290601010459b09376396c7833ec391c25bf (diff)
secret work
Diffstat (limited to 'scripts/movement.gd')
-rw-r--r--scripts/movement.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/movement.gd b/scripts/movement.gd
index 587b338..fb9e7bd 100644
--- a/scripts/movement.gd
+++ b/scripts/movement.gd
@@ -28,10 +28,12 @@ var ptr : Node
var _enemies : Node
var sel = {
- "type": "",
+ "type": "idle",
"name": ""
}
+var highlight : Spatial
+
func _ready():
camera = $camera
placer = $placer
@@ -76,6 +78,7 @@ func selected_event (sel_name, sel_type):
_gui.refresh(in_editor)
if sel_type == "turrets":
+ for child in ptr.get_children(): child.queue_free();
var info = load_turrets.info[sel.name]
var model = load_turrets.models[info.model_name]
var instance_model = model.instance()