Jump to content

Smoothen tween animation using Phaser 3


Dev_spuz
 Share

Recommended Posts

Hey guys, I am making a tripple chance game where each slice of the wheel is separate and i am providing a target angle to stop the wheel after completing the rotation by the help of tween but the case is initially it is rotating fine but after certain number of rotation it is generating unwanted jerks at the time of rotation, I am using Phaser.AUTO for rendering, how can i fix that issue,
cheers for any help

Link to comment
Share on other sites

Best way to make it smooth would be to manually update the angle in update, using constant speed (so something like container.angle += angleSpeed * dt). Then afterwards, when you get the backend response, just start the easeOut tween with the correct end position, and specify speed rather than the …

Drift Boss

Edited by salmawisoky
Link to comment
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...
 Share

  • Recently Browsing   0 members

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