11 lines
247 B
GDScript3
11 lines
247 B
GDScript3
|
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"):
|
||
|
print("2")
|
||
|
get_tree().change_scene("res://levels/World.tscn")
|