ganker 11 wrote:It's a browser game
Maybe the easiest way would be to use a new scene with the buttons and text necessary, and use "pause scene" and after the user clicks on ok, cancel, etc, return to the previously paused scene.
This may or may not be sufficient, depending on your purpose, but is the simpler way.
Just create a popup object and text on a layer above (or Z-Ordered higher) and have a variable called message_lock, set it =1 when the popup is active. When the popup is dismissed, set message_lock back to 0. Make sure functions you want unable to run when the popup is active have Variable(message_lock) = 0 on their conditions.
I attached an image below to show an example of this method I'm using right now in a game.
I can't see them, but if I click the location of the button, it carries out the action. Is there a way to limit user input to a specific layer and change it when you need to?