Jump to content

Walk Animation Shaking


Recommended Posts


I have a player spritesheet with 25 frames for a walk animation loop. When I add the animation and play it without any velocity is works fine. When I add velocity to it I can see that the feet of the sprite are visibly shaking.  I've tried playing around with the velocity values and there does seem to be less shakiness with lower velocity values but then the feet are just moonwalking on the floor . I'll add my code below. In the game the velocity is mapped to the right arrow but for testing everything is in the create method here:

Link to comment
Share on other sites

create: function()
this.player = this.game.add.sprite(0, 50, 'player');
this.player.body.collideWorldBounds = true;
this.player.animations.add('walkright', Phaser.Animation.generateFrameNames('Fire Marshall Main Walk Cycle_', 20, 43,'', 5), 24, true);
//this.player.body.velocity.x = 150;

Sorry, here's the code.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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