summaryrefslogtreecommitdiffstats
path: root/Trigger.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-16 08:45:53 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-16 08:45:53 -0400
commit0b7daa101c282fe83b6d75b080e25d0e2147253f (patch)
tree04b5af2ed9dddbcb2dc765c28b1af22de74d40f5 /Trigger.tscn
parentf8d1f2dc1bd6356c33d023629fbef27f362c7aa2 (diff)
downloadgodot_wildjam_49-0b7daa101c282fe83b6d75b080e25d0e2147253f.tar.gz
godot_wildjam_49-0b7daa101c282fe83b6d75b080e25d0e2147253f.zip
Add Trigger in lower hallway to hide water below deck
Diffstat (limited to 'Trigger.tscn')
-rw-r--r--Trigger.tscn28
1 files changed, 28 insertions, 0 deletions
diff --git a/Trigger.tscn b/Trigger.tscn
new file mode 100644
index 0000000..0f5b6b9
--- /dev/null
+++ b/Trigger.tscn
@@ -0,0 +1,28 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://Trigger.gd" type="Script" id=1]
+
+[sub_resource type="BoxShape" id=1]
+extents = Vector3( 1, 1, 0.3 )
+
+[node name="Trigger" type="Spatial"]
+script = ExtResource( 1 )
+
+[node name="Outside" type="Area" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.2 )
+collision_layer = 128
+collision_mask = 0
+
+[node name="CollisionShape" type="CollisionShape" parent="Outside"]
+shape = SubResource( 1 )
+
+[node name="Inside" type="Area" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2 )
+collision_layer = 128
+collision_mask = 0
+
+[node name="CollisionShape" type="CollisionShape" parent="Inside"]
+shape = SubResource( 1 )
+
+[connection signal="body_exited" from="Outside" to="." method="_on_Outside_body_exited"]
+[connection signal="body_exited" from="Inside" to="." method="_on_Inside_body_exited"]