Jump to content

Noob questions: UI, Menus and TextureAtlas


AngryMoose
 Share

Recommended Posts

Hi everyone,

 

I recently found out about Phaser and I'm in love :)

 

Quick questions:

 

- How do you guys handle a static UI? Sprites/Text inside a group? 

- I would also like a menu when clicking on an object (think right-click menu). I'd like to move the container to the location of the mouse and "hide" when clicking "outside" that object. Would a sprite be the right way to  go about it? Killing it to hide it?

- I'm trying to use http://www.kenney.nl/assets UI Asset pack, but I'm not sure how Phaser handles the TextureAtlas XMLs. Any pointers would be appreciated.

 

Thanks! :)

Link to comment
Share on other sites

  • 3 months later...

Here you can use the example here: http://examples.phaser.io/_site/view_full.html?d=loader&f=load+texture+atlas.js&t=load%20texture%20atlas

 

 

or texture packer https://www.codeandweb.com/sprite-sheet-maker could help you convert the assets to TextureAtlas Json...

 

I you are bent on using XML there are some examples that show you how here : http://examples.phaser.io/

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...