Hey there all. I'm very new to Spine but love seeing all the cool things Spine brings to Animators and Games.
I saw this cool Ghost Effect in a Unity tutorial but unfortunately couldn't find a script for Monogame / XNA. So I wrote my own. Hope I helped anyone with it.
I am not a super programmer so if there's something that could be done to improve the script please do say.
Loading Image
Initialize as :
SpineGhostRenderer ghostRenderer;
ghostRenderer = new SpineGhostRenderer(skeletonData);
Drawing / Updating
public void Update(GameTime gameTime)
{
float deltaTime = gt.ElapsedGameTime.Milliseconds / 1000f;
ghostRenderer.Update(state, Position, deltaTime);
}
public void Draw()
{
skeletonRenderer.Begin();
//Render before the actual skeleton inside the batch.
ghostRenderer.Draw(skeletonRenderer);
skeletonRenderer.Draw(skeleton);
skeletonRenderer.End();
}