Fixed debugger errors in many files and optimized some scenes/code

This commit is contained in:
VoidTwo
2021-12-12 23:55:59 -06:00
parent fc6dfdef4d
commit ef5ce684eb
39 changed files with 657 additions and 740 deletions

15
Levels/Chest Detection.gd Normal file
View File

@@ -0,0 +1,15 @@
extends Area2D
onready var portal = get_node('../PortalDarkForest')
onready var shape = portal.get_child(0)
func _ready() -> void:
shape.set_deferred('disabled', true)
return
func _on_chest_detection_body_entered(body: Node) -> void:
if body.is_in_group('player'):
shape.set_deferred('disabled', false)
return