2020-07-20 16:28:05 -05:00
|
|
|
extends Area2D
|
|
|
|
|
|
|
|
onready var door = get_node("AnimationPlayer")
|
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
if get_overlapping_bodies().size() != 0:
|
|
|
|
print("1")
|
|
|
|
if Input.is_action_pressed("open"):
|
2020-07-21 01:07:58 -05:00
|
|
|
Player.current_scene = "res://levels/World.tscn"
|
|
|
|
get_tree().change_scene("res://levels/testtscn")
|