Questions tagged [spine]

Spine is an animation tool that focuses specifically on 2D animation for games. Spine aims to have an efficient, streamlined workflow, both for creating animations and for making use of those animations in games.

Animation in Spine is done by attaching images to bones, then animating the bones. This is called skeletal or cutout animation and has numerous benefits over traditional, frame-by-frame animation:

  • Smaller size Traditional animation requires an image for each frame of animation. Spine animations store only the bone data, which is very small, allowing you to pack your game full of unique animations.
  • Art requirements Spine animations require much fewer art assets, freeing up time and money better spent on the game.
  • Smoothness Spine animations use interpolation so animation is always as smooth as the frame rate. Animations can be played in slow motion with no loss in quality.
  • Attachments Images attached to bones can be swapped to outfit a character with different items and effects. Animations can be reused for characters that look different, saving countless hours.
  • Mixing Animations can be blended together. For example, a character could play a shoot animation while also playing a walk, run or swim animation. Changing from one animation to another can be smoothly crossfaded.
  • Procedural animation Bones can be manipulated through code, allowing for effects like shooting toward the mouse position, looking toward nearby enemies, or leaning forward when running up hill.
44 questions
3
votes
0 answers

Does spriter animation exported as json work on Pixijs?

I was watching some videos on getting started with Pixijs and in some video they said Spriter can be used for the spine animation. But the exported json doesnt seem to work with pixijs. Anybody has experience using the Spriter exported json in…
Anil Maharjan
  • 441
  • 4
  • 14
3
votes
2 answers

Use Spine in Cocos2dx

In cocos2dx, I use the class skeletonAnimation to create the skeleton animation which uses the resources exported by spine. We know the class skeletonAnimation is the subclass of node not is sprite. How to do to make the skeleton animation flip the…
MoonBIrd
  • 53
  • 4
2
votes
1 answer

The spine plugin for Phaser gives an error

I'm trying to upload the plugin to my project, tried all the methods, but nothing works. Returns an error Uncaught TypeError: Cannot read properties of undefined (reading 'createSkeleton') at initialize.set Skeleton (:1:290667) at…
2
votes
1 answer

Can't import plugin for lib

I try to import 'pixi-spine' plugin to my file where I imported PIXI lib. But I can't do it. I use webpack to package files. I try another variants to do it, but I have this error import * as PIXI from 'pixi.js'; import {Spine} from…
Viacheslav
  • 31
  • 4
1
vote
0 answers

Spine SkletonData won't take material in Unity

I've used assets in Unity made with Spine. GameObjects I create from SkeletonData files will look like this: At first glance the problem seems obvious; In the Mesh renderer, it says the material is missing. However, adding my material won't work…
1
vote
1 answer

How can I change the color of a Spine slot or attachment in Phaser?

How can I change the color of a Spine slot in Phaser? (I'm using Phaser version 3.60.0-beta.22) I can find an attachment, and it should be possible to change the color by creating a new color (of the type spine.Color) like this: const slot…
John
  • 10,165
  • 5
  • 55
  • 71
1
vote
1 answer

How to have 2 different scales on same Y axis in Python using Matplotlib

I need to draw 4 X vs Y plots, where X is constant but different Y Values. I used below code to get the plots but need to show the Y scale on either side of the Secondary Y axes (Y Axis 2 in the image), the way Primary Y Axis has (both inward and…
user11734037
1
vote
1 answer

Drag and drop image not dragging in Phaser 3 v3.54.0

I am trying to add Spine into my project, older versions of of Phaser won't load my Spine, the newest (3.45.0) works fine. But drag and drop doesn't work in 3.45.0. Older versions, my drag and drop works with no problem. My game object says…
1
vote
0 answers

Is it possible to run Spine animation in node.js using just .json file? (spine-runtimes library)

I want to run Spine animation in node.js backend without any rendering. Is it possible to use just .json spine data for it? Because in examples I looked also require .atlas.txt file. I am using spine-runtimes library. Thanks
1
vote
1 answer

How to integrate Spine animations to a SpriteKit game

I need to integrate animations to an iOS SpriteKit game. The artist provides them in Spine format. Such animation consists of a set of images, a .spine file describing the animations and a .json file describing the metadata. I see two possible ways…
kelin
  • 11,323
  • 6
  • 67
  • 104
1
vote
0 answers

Try to have the animation effect by PixiJS but it didn't show anything

I am the beginner of PixiJS and learn it by its website examples. I want to practice animation but it didn't show anything. This link is the effect it should like to. This is the first way I tried, code works successfully but the screen didn't show…
Zhao Chen
  • 11
  • 1
1
vote
0 answers

fixed bar width in spineplot

I'm using spineplot to visualize conditional density. As a default, width of bars indicate relative density of data (like height of bar on a histogram). However, this is not OK for me now. How the "get rid" of this feature and gain constant bar…
Contemplavit
  • 115
  • 1
  • 1
  • 10
1
vote
2 answers

spine 2d coordinate system libgdx

i don't know what im doing wrong...i think im having brain freeze. I am really struggling with converting my spine objects pixel coordinates to world coordinates. I have recently converted all my code to work with Ashley ecs and i cant seem to get…
Amar_H
  • 47
  • 11
1
vote
1 answer

How to get spine animation list with Unity custom editor

Hi I try to create custom editor that automates creating character and also their respective animations. How do i get spine animations list with unity custom editor ?
Tengku Fathullah
  • 1,279
  • 1
  • 18
  • 43
1
vote
2 answers

Libgdx spine2d skeleton animation

This is my code: game init: playerAtlas = new TextureAtlas(Gdx.files.internal("spineboy.atlas")); json = new SkeletonJson(playerAtlas); playerSkeletonData = json.readSkeletonData(Gdx.files.internal("spineboy.json")); …
Lucas B
  • 338
  • 4
  • 14
1
2 3