Jump to content

Load events not triggering


pistacchio
 Share

Recommended Posts

Hi,

I think that I've done everything correctly, but in the following simple code (take from a much larger project) onLoadStart and onLoadComplete don't work. The game is running locally with python SimpleHTTPServer.

 

Any help? Thanks

 

// SPLASH SCREEN STATEGame.Splash = function (game) {};Game.Splash.prototype = {    preload: function () {        this.load.image('images', 'static/img/images.png');    },    create: function () {        var self = this;        this.load.onLoadStart.add(function () {            debugger;        }, this);        this.load.onLoadComplete.add(function () {            debugger;        }, this);    }}var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', null, false, false);game.state.add('Splash', Game.Splash);game.state.start('Splash');

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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