I'm writing a function that will throw a dialogue box on screen, freeze the game while it's on, and then disappear/turn the game back to normal when it's done. In this case, the function should end when the player touches the screen, or maybe the box itself.
I'm having a little trouble getting it to work, when I call two of these functions in the same event they just run into each other. I'd like to be able to have conversations by calling lots of these functions, so I need them to be able to freeze/release the game within the function itself, so that the next function will be able to do the same thing. Does anyone have advice as to how I can do it?