Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

How do I get data from JSON file in Phaser3?


MZuex
 Share

Recommended Posts

Hi,

Am trying to get text data from a JSON file which I've loaded using :

this.load.json('textInfo', 'js/textInfo.json ');

however, I can't access the data using the code I had working in phaser2 

getInfo = JSON.parse(this.cache.getText('textInfo'));

and the JSON examples folder on the phaser site is empty, can someone help me out with this please?

Link to comment
Share on other sites

  • 6 months later...
  • 1 year later...
 Share

  • Recently Browsing   0 members

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