Nate ha scrittoBy example files, do you mean example projects or source code?
I mean examples of json-files - https://github.com/EsotericSoftware/spine-runtimes/tree/4.0/spine-ts/spine-player/example/assets =)
I already mentioned that I am working on a full conversion from format v2.1.27 to 4.1-beta. Well, now at 4.1-beta. It was planned 3.8. But they don’t change horses on the crossing.
Took up the development of the converter to v.3.8. It so happened that I saw a page with information about Spine web player - Spine Web Player
I connected to it, played around, started experimenting with conversion adjusting to the format description for json-files - Spine: JSON export format
And then something went wrong ... Strange errors, but if I read the documentation, it should work.
Took examples of json-files again - https://github.com/EsotericSoftware/spine-runtimes/tree/4.0/spine-ts/spine-player/example/assets
Found inconsistencies in some places, corrected the converter. For a week I adjusted various small details by looking in javascript for web player, including Bezier curves. And... (just don't laugh!) and then it dawned on me: I mixed up the versions. And now I have converter for json-files from v2.1.27 to v4.1-beta, not to v3.8.
My initial mistake was that I did not think about the likelihood of the existence of Spine web player v3.8. And that the description of the format on the site is not for spine v4.
Well, no one really scolds me for that. Reverse engineering. Was fun. =)
warmanw ha scrittostill getting an error but on white background lol
Reason:
warmanw ha scrittobackgroundColor: "#ffffffff"
Why not just alpha false and color #ffffff ? Same for me.
warmanw ha scrittoHowever I just noticed that Wix editor specifically asks urls with https.
Buy ssl-certificate for your site. Inexpensive pleasure.
For the sake of experiment, I took your files. There are no problems with them - https://www.norbdragon.com/uploads/spine18/
I will delete them tomorrow. Or now, if you insist.
my variant:
<script src="https://unpkg.com/@esotericsoftware/spine-player@4.1.5/dist/iife/spine-player.js"></script>
<link rel="stylesheet" href="https://esotericsoftware.com/files/spine-player/4.0/spine-player.css">
<div id="player"></div>
<script>
new spine.SpinePlayer("player", {
jsonUrl: "mythic_water_swamzoad_3.json",
atlasUrl: "mythic_water_swamzoad_3.atlas",
alpha: true,
backgroundColor: "#ffffffff",
showControls: true
});
</script>
If your files on same site as your wix, you can use relative links to your files, not full url. Perhaps this will give you a bypass of the problem with the obligatory https.
Something like:
jsonUrl: "/swamzoad/mythic_water_swamzoad_3.json",
atlasUrl: "/swamzoad/mythic_water_swamzoad_3.atlas",
PS: you don't have "breathe" animation there. So I removed this line.
PPS: you can take all files to your wix-site, if wix hate non-wix sites. I'm about spine-player.js, spine-player.css and yours mythic_water_swamzoad_3.*