Langusmon Posted February 15, 2018 Share Posted February 15, 2018 I am trying to get a 'pane' of information and clickable sprites to show up when a sprite is clicked. For example, if I had a world map, and I clicked on the United States (which is a sprite) I would like to see a pane pop up that gives me information about the sprite, and gives me things I can click on. See the below image, which each blue button being a clickable sprite that launches a function. Can I create some sort of a pane to do this, or would I create a sprite with many child objects, or would I have each thing be its own sprite and just add them to the game state in the order I want them to be overlayed on top of each other? Link to comment Share on other sites More sharing options...
casey Posted February 16, 2018 Share Posted February 16, 2018 https://phaser.io/examples/v2/input/button-open-popup https://phaser.io/news/2017/10/message-box-tutorial This is the most in-depth examples of modal popups: https://github.com/netgfx/phaser_modals Sir_G 1 Link to comment Share on other sites More sharing options...
Langusmon Posted February 16, 2018 Author Share Posted February 16, 2018 @caseythanks! ill take a look Link to comment Share on other sites More sharing options...
samme Posted February 17, 2018 Share Posted February 17, 2018 A Group works well as a "layer" for this. Link to comment Share on other sites More sharing options...
Recommended Posts