oi, go right!
This commit is contained in:
parent
ac0f3c8d58
commit
7b4d519791
5 changed files with 87 additions and 57 deletions
15
maps/hills_speccy_detect.gd
Normal file
15
maps/hills_speccy_detect.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
var try_for_speccy: bool = true
|
||||
|
||||
onready var skippers: int = get_tree().get_nodes_in_group("speccy_skip").size()
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if try_for_speccy:
|
||||
if get_tree().get_nodes_in_group("speccy_appear").empty():
|
||||
try_for_speccy = false
|
||||
$Speccy.appear()
|
||||
elif get_tree().get_nodes_in_group("speccy_skip").size() < skippers:
|
||||
try_for_speccy = false
|
Loading…
Add table
Add a link
Reference in a new issue