Windows Spine Animation Clipping

Jorg Gjer

Member
Hi
I have an animation made in Spine.
I want to be able to show it like on a tv.
And also be able to move the spine animation so I see different parts of the animation depending on user input.

I guess I need a way to clip the Spine animation.

Can anyone help and set me on the right path?
 
Last edited:

rIKmAN

Member
Hi
I have an animation made in Spine.
I want to be able to show it like on a tv.
And also be able to move the spine animation so I see different parts of the animation depending on user input.

I guess I need a way to clip the Spine animation.

Can anyone help and set me on the right path?
Load up the "spineboy-pro" project from the examples folder and check out the "portal" animation.
This uses clipping masks within Spine and sounds like what you are after.

If you don't own Spine Pro then check out this Clipping Drawn Graphics article by YellowAfterlife which shows a few methods of how to do it using GameMaker.
 

Jorg Gjer

Member
Thank you rIKmAN for your help.


Yes, I have locked the spineboy clipping way of doing it.
But it will be painful to do this in Spine.
I want to move the visible part of the depending on user input.

The Clipping Drawn Graphics Article.

I could try, but the thing is that the spine sprite has to be on an object.
It's not like the object draws an image or a shape when it has Spine animation, the way I understand it.
So I have a feeling the article will fail on what I try to achieve.
Or will it work ?

Anything that can lead to a solution will be helpful.

Kaizen
 

rIKmAN

Member
Thank you rIKmAN for your help.


Yes, I have locked the spineboy clipping way of doing it.
But it will be painful to do this in Spine.
I want to move the visible part of the depending on user input.

The Clipping Drawn Graphics Article.

I could try, but the thing is that the spine sprite has to be on an object.
It's not like the object draws an image or a shape when it has Spine animation, the way I understand it.
So I have a feeling the article will fail on what I try to achieve.
Or will it work ?

Anything that can lead to a solution will be helpful.

Kaizen
I haven't tried it but it should work fine with a Spine sprite just like it does with a normal sprite. - try and it post back if you have any specific problems with it.

Unless it's been updated then the examples on the page only work in GMS2 if the shape is an actual sprite and not drawn with a native drawing function, so keep that in mind and replace any draw_rectangle/draw_circle() etc with draw_sprite() using an actual sprite you have created. Once that's working try swapping it out with a simple Spine sprite and go from there.

It may have been updated, @YellowAfterlife can confirm for you.
 
Last edited:
Top