what would be the best way of switching to a new scene after all enemies on the level is dead. I would assume the best way would be using groups but how or other ideas would be appreciated :))))
Yeah, probably using groups is a good option.
var enemies = get_tree().get_nodes_in_group("enemies") if enemies.size() == 0: # all dead, change scene