summaryrefslogtreecommitdiffstats
path: root/Main.gd
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 /Main.gd
parentf8d1f2dc1bd6356c33d023629fbef27f362c7aa2 (diff)
downloadgame_jam49-0b7daa101c282fe83b6d75b080e25d0e2147253f.tar.gz
game_jam49-0b7daa101c282fe83b6d75b080e25d0e2147253f.zip
Add Trigger in lower hallway to hide water below deck
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/Main.gd b/Main.gd
new file mode 100644
index 0000000..15acb18
--- /dev/null
+++ b/Main.gd
@@ -0,0 +1,7 @@
+extends Spatial
+
+func _on_lower_deck_trigger_exited():
+ $"Water".visible = true
+
+func _on_lower_deck_trigger_entered():
+ $"Water".visible = false