kaasis Posted June 15, 2017 Share Posted June 15, 2017 I googled this, couldn't find any solution anywhere. The problem is that when i add Phaser.Camera.LOCKON with parameters of less than 1 (i have 0.3,0.3) to .follow() it makes all tweens choppy while moving around. Is there any solution for this? // folow that.camera.follow(that.player,Phaser.Camera.LOCKON,0.3,0.3) // tweening positions var tweenPlayer = that.add.tween(player) tweenPlayer.to({x:data.data.x,y:data.data.y,rotation:data.data.angle},0.05) tweenPlayer.start() Link to comment Share on other sites More sharing options...
samme Posted June 15, 2017 Share Posted June 15, 2017 The duration 0.05 is much too small. Link to comment Share on other sites More sharing options...
kaasis Posted June 15, 2017 Author Share Posted June 15, 2017 38 minutes ago, samme said: The duration 0.05 is much too small. yeah but i can't put it higher. Link to comment Share on other sites More sharing options...
samme Posted June 15, 2017 Share Posted June 15, 2017 0.05 is 0.05ms. Anything under 20ms is pretty much instantaneous. Link to comment Share on other sites More sharing options...
Recommended Posts