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.
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.
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;
}
}
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.