When sarc is opened then actually make the sarc appear open visually, and close other sarcs.
This commit is contained in:
1 parent
2a62087316
commit
60bc8956cb
2 files changed
+32
-3
No files matched your search
@@ -1,5 +1,8 @@
|
||||
extends Interactable
|
||||
|
||||
func set_open (is_open: bool) -> void:
|
||||
$Sprite2D.play("open" if is_open else "closed")
|
||||
|
||||
func _on_interacted() -> void:
|
||||
%OldComputer.open()
|
||||
|
||||
@@ -9,6 +12,9 @@ func _on_interacted() -> void:
|
||||
if %Player2D.spawn_point != new_spawn_point:
|
||||
%Player2D.spawn_point = new_spawn_point
|
||||
%OldComputer.printline(">> Respawn point set to %s" % new_spawn_point)
|
||||
|
||||
for sarcophagus in get_tree().get_nodes_in_group("sarcophagi"):
|
||||
sarcophagus.set_open(sarcophagus == self)
|
||||
|
||||
var wanted_disk = %OldComputer.get_next_disk_num()
|
||||
|
||||
|
||||
Reference in new issue
Block a user