8 lines
156 B
GDScript
8 lines
156 B
GDScript
extends Sprite2D
|
|
|
|
|
|
|
|
|
|
func _on_area_2d_body_entered(body: Node2D) -> void:
|
|
if body.name == "Player":
|
|
get_tree().change_scene_to_file("res://end.tscn")
|