• Runtimes
  • New version for Construct 2

Misaki that's sad. By the way, can you assist with the Spine Webgl setup?
I need just to load my two animations inside two html containers (columns). But i have not found any good example how to do it. I think you have some Spine.js for web browsers maybe? I saw your web player, but i need exactly the WebGl. Can you help please?

Here's an example for html code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Left and Right Images</title>
  <style>
    img {
      display: block;
      max-width: 100%;
      height: auto;
    }

    .left {
      float: left;
      margin-right: 10px;
    }

    .right {
      float: right;
      margin-left: 10px;
    }
  </style>
</head>
<body>

  <img src="left_image.jpg" alt="Left Image" class="left">
  <img src="right_image.jpg" alt="Right Image" class="right">

</body>
</html>
  • Misaki и darceyo ответили на это сообщение.
    Related Discussions
    ...
    • Изменено

    darceyo Have you seen our demos and examples in spine-runtimes/spine-ts/spine-webgl? You should be able to get the basic code from there: spine-runtimes/spine-ts/spine-webgl

    If you still have any questions after examining them, please create a new post to ask the questions.

    • darceyo ответили на это сообщение.
      • Изменено

      Misaki yes, i have question, why i don't see this page correctly?

      where i can find this file?

      darceyo html code

      i'm interested in web version, not nodejs,
      but basic JavaScript for Web Browser which can be used/loaded on website.

      Please read the documentation. These are "web version" examples. They use our spine-ts runtime and backends, like spine-webgl, spine-canvas, etc. However, for the "web version" examples to work, the code of the runtimes needs to be compiled to .js files, like the spine-webgl.js file your browser complains about. For that compilation to happen, you need to compile them, which is done via npm run dev.

      You can also use spine-webgl by linking the unpkg.com files. Either way you'll need to read the documentation.

      That said, the easiest way to show two animations side is the Spine Web Player:
      http://esotericsoftware.com/spine-player

      • darceyo ответили на это сообщение.

        Nate the easiest way to show two animations side is the Spine Web Player:
        http://esotericsoftware.com/spine-player

        1. can you tell me how to change skin inside this player?
          i made custom code to change it (when select new skin it must be choosed inside webplayer)

          but it is not working.
        1. how to change webplayer logo/colors?
        • darceyo ответили на это сообщение.

          darceyo can you tell me how to change skin inside this player?

          don't worry about it, i have already added some new code to your WebPlayer,
          just give me answer to:

          1. how to make player bg transparent
          2. change loading logo.
          • darceyo ответили на это сообщение.

            darceyo how to make player bg transparent
            change loading logo.

            already done.
            but there some issue with performance when there a lot of webplayers loading at the same time, do you have ideas how to fix that?

            • darceyo ответили на это сообщение.

              darceyo there some issue with performance when there a lot of webplayers loading at the same time, do you have ideas how to fix that?

              • fixed

              current problem: how to show mesh of the animation using js function?
              i made this, but it is not working.

              • darceyo ответили на это сообщение.

                darceyo current problem: how to show mesh of the animation using js function?

                fixed.

                Seems that you are making great progress! 🥳

                месяц спустя

                For some weird reason, I tried googling Spine Runtime for C2 today and saw this in the result.
                I got excited for a minute there that finally, I see an update about a runtime for C2 after all this years!

                It's understandable that a runtime for C2 will not be pursued. But it's still sad.
                I also prefer C2 than C3.

                I'm still hopeful that maybe one day will come and someone will make one. crosses fingers