SPINE - How to use Corona spritesheets?

I’m using Spine for quite some time now to create awesome animations for my games. But the last big update which brought the addition of meshes and a rewrite of parts of the spine runtime, brought up some issues concerning the use of Corona spritesheets.

The last big (Corona) update implemented meshes, which are now also used in the Spine Corona runtime. Looking into the example animations it works as follows:

  1. Export a texture Atlas using Spine (consists of a texture and and atlas file)

  2. Create a table with the texture path, which is later used in a fill

  3. Use the rutimes atlas library to create a fill from the texture and the path to the atlas file

To me this has one big issue:

I’m not able to use Corona spritesheets any longer and I am forced to use Spine atlas files instead. This is very annoing, as it heavily retricts how I organize my images on spritesheets.

It would be great if someone could give me a lead on this.

I created a helper library for the old system (which used “createImage” and “changeImage” functions) and want to update it to the new situation.

Hello,

If by “fills” you mean this type of thing…

[lua]

local theImage = display.newRect( display.contentCenterX, display.contentCenterY, 300, 225 )

theImage.fill = { type=“image”, filename=“Dragons.jpg” }

[/lua]

… then yes, automatic/dynamic image selection works for that.

Take care,

Brent

Hey Brent,

that’s great, thank you :slight_smile:

Now only the first question remains (updated the question).

Hi @torbenratzlaff,

For this, you’ll have to reach out to the Spine team and the author of the Corona runtime for Spine. I don’t know exactly what they changed and how it impacts Corona users, but it sounds like a rather significant move in overall Spine usage.

Brent

Hello,

If by “fills” you mean this type of thing…

[lua]

local theImage = display.newRect( display.contentCenterX, display.contentCenterY, 300, 225 )

theImage.fill = { type=“image”, filename=“Dragons.jpg” }

[/lua]

… then yes, automatic/dynamic image selection works for that.

Take care,

Brent

Hey Brent,

that’s great, thank you :slight_smile:

Now only the first question remains (updated the question).

Hi @torbenratzlaff,

For this, you’ll have to reach out to the Spine team and the author of the Corona runtime for Spine. I don’t know exactly what they changed and how it impacts Corona users, but it sounds like a rather significant move in overall Spine usage.

Brent