Sign in to follow this  
kaasis

Phaser.Camera.LOCKON has choppy tweening.

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()

 

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.