Spine animations


Display spines animations.

// Create spine object to display animation
spine = new Spine();
spine.spineData = assets.spine(Spines.RAPTOR_PRO);
spine.pos(screen.width * 0.5, screen.height * 0.85);
spine.animation = Spines.RAPTOR_PRO.WALK;
spine.loop = true;
add(spine);

Next example ➔ Spaceship bullet