Jump to content

Search the Community

Showing results for tags 'custom loader'.

  • 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 2 results

  1. Hi, To make the preload faster, I need to load several assets after the preload phase, and use then when they has been loaded. To do that, I've used the Phaser.Loader object and register to "onFileComplete" Phaser.Signal to catch the file when has been loaded, to load the next file. This works well until I need to change the current state and there are an asset being loaded. When the file is loaded and the new state has been created, Phaser detects that the Loader is not loading (processLoadQueue method from Phaser.loader) and shows this message: 'Phaser.Loader - active loading canceled / reset', and the "onFileComplete" registered functions, are not fired, and I cannot continue loading more assets. My idea was to attach to "onStateChange" signal and stop/pause the current async download, but there are no public methods in Phaser.Loader to do that. Are there a good way to load assets asynchronously with state changes? Thanks
  2. Hello guys, is there a way to add sprite to the loading screen? I saw that I can change the loading screen using this method: game.Loader.inject({backgroundColor: 0xcccccc, initStage: function() { /* BACKGROUND */ this.bar = new game.Graphics(); this.bar.beginFill(0xffffff); this.bar.drawRect(0, 0, 260, 40); this.bar.position.x = game.system.width / 2 - (260 / 2); this.bar.position.y = game.system.height / 2 - (40 / 2); this.bar.scale.x = this.percent / 100; game.system.stage.addChild(this.bar); }, onPercentChange: function() { this.bar.scale.x = this.percent / 100; }});But I want to add a background and some sprites such as the logo. Can you help me? thanks a lot ^^
×
×
  • Create New...