How can I make a dialog box pop up at the start of a new level without interacting with an object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juan

I have started my new level, and I want a dialog box to appear at the start automatically, without having to interact with an object. I’ve already coded my dialog box.

:bust_in_silhouette: Reply From: haha-lolcat1

assuming that a new level is a new scene, would this work?

func _ready():
	$PopupDialog.popup() #if you are using Godot's dialog nodes

popup() also gives you the option to add in the coordinates, but it is not necessary.
otherwise this should work with any other node type:

func _ready():