Jump to content

Search the Community

Showing results for tags 'cache state'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi! I need load some images based on a JSON, I've tried: init() { game.load.json('json_key', 'url_to_json.json'); game.load.start(); } and then: preload() { game.cache.getJSON('json_key').imagesName.forEach((name) => { game.load.image(name, 'url' + name + '.png'); }); } but it's not working... the variable game.cache.getJSON('json_key') is null on preload(), but it has the value on create(); I don't wanna use onLoadComplete() because the generic loading bar that I'm using won't calculate the values after the load has completed. Edit: I know it's possible on create(), but I need it on preload for the loading bar So that's my question, is there any way to do it? Thanks;
×
×
  • Create New...