Jump to content

Is it ok to use a single .png as a button?


Biggerplay
 Share

Recommended Posts

If I use a line like this...

this.spell1 = this.game.add.button(15,110, 'greenIcon', this.castSpell(1), this, 'over', 'out', 'down');

but "greenIcon" is just a single .png image without a .json file, is that ok? can I get rid of the 3 bits at the end? (over, out, down) or they are still needed anyway?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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