This commit is contained in:
Felipe M 2021-05-20 23:14:20 +02:00
parent 0f3f6f0133
commit c613eac80f
Signed by: fmartingr
GPG key ID: 716BC147715E716F
9 changed files with 70 additions and 57 deletions

View file

@ -0,0 +1,13 @@
extends Area2D
export(Resource) var connection = null
export(String, FILE, "*.tscn") var new_level_path = ""
var active = true
func _on_Door_body_entered(player):
print("hit door")
if active:
player.emit_signal("his_door", self)
active = false