Godot Version
v4.3
Question
How can I make it so that when the Player hits the body of the lava, a youlose.tscn scene is set?
The lava asset is a Tileset that has collision shapes configured so the Player does not go though the lava.
Here is my code below.
func _on_area_2d_body_entered(_body):
get_tree().change_scene_to_file.bind("res://Scenes/youlose_screen.tscn")
Here is my node tree setup
(lava.tscn)
(Player.tscn)