Skip to content

Spine Animations

Radomiej edited this page Aug 15, 2016 · 4 revisions

Create GameObject with animations

JGameObject arrowMan= scene.instantiateGameObject(new Vector2(50, 250));
arrowMan.addComponent(new SpineRenderer("resources/animations/skeleton.json#arrow"));

Create test component which set start animation

public class SpineTestComponent extends DefaultComponent {
	
	@Override
	public void start() {
		getGameObject().getComponent(SpineRenderer.class).setAnimation("run", true);
	}
}

Clone this wiki locally