Kamola

Hello,
I am working on a project using Spine and Phaser 3.

When I create my character I insert multiple atlases because I have a dynamic project with multiple clothing combinations.
(The atlases I load depend on the assets the user choose to wear)

This is my code (In preload function):
let atlases = [
"skeleton.atlas",
"clothes1.atlas",
"clothes2.atlas",
"shirt3.atlas",
"hat1.atlas",
"hat2.atlas",
"hat3.atlas",
"clothes-set0.atlas",
"hat4.atlas",
"hat5.atlas",
"clothes-set1.atlas",
"hat10.atlas",
"hat14.atlas"
];
let spineObj = this.load.spine("skeleton0", "skeleton.json", atlases);

Once I have more than 10 atlases in my array I get the following error that is seen in the attachment.

Any idea why is this happening?
This is a blocker on our end.
I would appreciate your help,
Have a good day!
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
Kamola
  • Messaggi: 5

Mario

I'm afraid we do not maintain the Spine integration in Phaser, so I'm unfamiliar with how it works. Your stack trace only shows Phaser specific code. Maybe I can help if you can provide an (unminified) sample project that shows the error. Alternatively you could ask the Phaser authors for input.
Avatar utente
Mario

Mario
  • Messaggi: 3160


Torna a Bugs