Jump to content

Animation FPS?


manic.blood1993
 Share

Recommended Posts

What version of panda are you using? I'm not sure if this is the answer you are looking for but in version 1 animations works like so:

 

game.module(
    'game.main'
)
.body(function() {

game.addAsset('anim1/skeleton-animation0.jpg', 'prop0');
game.addAsset('anim1/skeleton-animation1.jpg', 'prop1');
game.addAsset('anim1/skeleton-animation2.jpg', 'prop2');
game.addAsset('anim1/skeleton-animation3.jpg', 'prop3');
game.addAsset('anim1/skeleton-animation4.jpg', 'prop4');
game.addAsset('anim1/skeleton-animation5.jpg', 'prop5');

game.createScene('Main', {
    backgroundColor: 0xeeeeee,

    init: function() {
		
		this.propeller = new game.Animation(
            'prop0',
            'prop1',
            'prop2',
            'prop3',
            'prop4',
            'prop5'
        );          
          
        this.propeller.animationSpeed = 0.3;
        this.propeller.play();
        this.propeller.position.set(230, 350);
        this.propeller.anchor.set(0,1);
                
        game.scene.stage.addChild(this.propeller);   
        
    }
});

});

So you just have to adjust the animation speed with:

this.propeller.animationSpeed = 0.3;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...