• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Unable to load SPINE file using sprite_add() in HTML5.

P

penpen

Guest
Hello.
I'm trying to load a SPINE file in the local directory using sprite_add() in HTML5, but it doesn't work.

If you build with HTML5, you can get async_load.
However, the content of status is -1.

I have confirmed the following:
- A png placed in the same path has been load normally.
- Builds with platform set to "Test" will load and display correctly.
- Tried it on Chrome and Safari.

I wrote the source code as follows.
Code:
// Create
spr1 = sprite_add("./sample37.json", 1, false, false, 0, 0);
Code:
// Async - Image Loaded
if (ds_map_find_value(async_load, "id") == spr1) {
    if (ds_map_find_value(async_load, "status") >= 0) {
        sprite_index = spr1;
    }
}
My environment is as follows:
OS:MacOS(Mojave)
GMS2:v2.2.4

I made a sample project.
https://www.dropbox.com/s/rxyp2mfiwvfo9fy/spine_load_test.yyz?dl=0

Where is it wrong?
Or what is missing?
I would appreciate your help.


Postscript:
Sorry for the strange English.
Rely on google translation.
 
P

penpen

Guest
@chmod777
Thank you for reading the post.

In addition, thank you for the advice and links.
I would like to create a bug report from this link.
 
Top