Javascript Phaser3 Assets Not Loading In Create Function
If you use this code in the create
function (or other non preload
functions) it should work:.
this.load.image(key, url); // add task
this.load.once('complete', callback, scope); // add callback of 'complete' event
this.load.start(); // start loading
I got it from this documentation, and it works in my demo code.
Here a working example on Phaser.io