Jump to content

Phaser.Camera.LOCKON has choppy tweening.


kaasis
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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