mrphaser Posted September 25, 2016 Share Posted September 25, 2016 I have a game that is using phaser.io as a framework. Everything works perfect except this part of the code: PipeGroup.prototype.reset = function(x, y) { this.topPipe.reset(0,0); this.bottomPipe.reset(0,440); this.x = x; this.y = y; this.setAll('body.velocity.x', -200); this.hasScored = false; this.exists = true; }; The problem is only that it feels shaky when the velocity is applied and the pipes keep moving, they dont move smoothly. Is there any way to fix it? Github link to game.js where this code is written Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.