Sign in to follow this  
lars

Spine and mesh

Recommended Posts

Hello 

First of all. I m so glad to see Panda on the road again :-) I have just bought the full version and playing around with Spritesheets developed in Spine 3.6.52 professional. It seems like mesh is not supported in panda 2 version 1.5.0. When I export from spine as a spritesheet with mesh animations it won´t show the spritesheet, If i remove the Mesh animation it shows the animation fine:

 

game.module(
    'game.main'
)

.require(
    'plugin.spine'
)
    
.body(function() {
    
    //game.addAsset('panda.png');
    
game.addAsset('sheep.atlas');
game.addAsset('sheep.json');

game.createScene('Main', {
    init: function() {
        
        var player = new game.Player();
        player.sprite.addTo(this.stage);
        
    }
});

game.createClass('Player', {
    init: function() {
        
      
        
        //this.sprite = new game.Sprite('panda.png');
        
         this.sprite = new game.Spine('sheep.json');
        this.sprite.position.x = 200;
        this.sprite.position.y = 800;
        this.sprite.play('idle', true);
        
        
        
    }
});

});

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.