Add slight delay to opening the OC so we can see the sarco open.
This commit is contained in:
1 parent
05fb9fd89d
commit
85847e3340
1 file changed
+4
-3
+4
-3
@@ -4,6 +4,10 @@ func set_open (is_open: bool) -> void:
|
|||||||
$Sprite2D.play("open" if is_open else "closed")
|
$Sprite2D.play("open" if is_open else "closed")
|
||||||
|
|
||||||
func _on_interacted() -> void:
|
func _on_interacted() -> void:
|
||||||
|
for sarcophagus in get_tree().get_nodes_in_group("sarcophagi"):
|
||||||
|
sarcophagus.set_open(sarcophagus == self)
|
||||||
|
|
||||||
|
await get_tree().create_timer(0.15).timeout
|
||||||
%OldComputer.open()
|
%OldComputer.open()
|
||||||
|
|
||||||
#Accomodate some collision antics.
|
#Accomodate some collision antics.
|
||||||
@@ -13,9 +17,6 @@ func _on_interacted() -> void:
|
|||||||
%Player2D.spawn_point = new_spawn_point
|
%Player2D.spawn_point = new_spawn_point
|
||||||
%OldComputer.printline(">> Respawn point set to %s" % 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()
|
var wanted_disk = %OldComputer.get_next_disk_num()
|
||||||
|
|
||||||
if %Player2D.complete_objective("sarc"):
|
if %Player2D.complete_objective("sarc"):
|
||||||
|
|||||||
Reference in new issue
Block a user