Doors
This commit is contained in:
parent
0f3f6f0133
commit
c613eac80f
9 changed files with 70 additions and 57 deletions
13
metroidvania/Levels/Door.gd
Normal file
13
metroidvania/Levels/Door.gd
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue