Search the Community
Showing results for tags 'sheets'.
-
Has anyone encountered a problem with the load progress reporting incorrectly when loading sprite sheets? I'm loading a large sprite sheet and loading goes from .5,.33,.66, to 1.00 immediately and loads these numbers every time. The game does eventually load fine, but way after load progress reports 100%. Here's the code: this.load.multiatlas('sprite_sheet1', 'sprite_sheets/sprite_sheet1.json', 'sprite_sheets'); this.load.on('progress', function (value) { console.log(value); }); I'm using Phaser 3. Anyone see any problems with the way I'm doing this?
-
Hello, I'm a previously flash developer and learning games development using phaser and noticed that many things are done differently here. For example, you make an animated character something like that: game.load.atlasJSONHash('bot', 'assets/sprites/running_bot.png', 'assets/sprites/running_bot.json'); What if you have 20 animated characters in a game? Will you load 20 png and 20 json files? Then there will be other asset files. Is there a way to combine assets so that there are few load requests from the server.