I want it to open a dialog only the first time I click a button in the game.
My game has no character, it's all by touch
Develop games in your browser. Powerful, performant & highly capable.
Give each button a Boolean set to false.
On click if boolean is set to false create the dialog and set to true