Jump to content

Problem dargging via mousemove


trsh
 Share

Recommended Posts

See here http://pixijs.github.io/examples/index.html?s=demos&f=dragging.js&title=Dragging

If you scale bunnies to original size

bunny.scale.set(1);

and drag bunny around in even fast speed, you can see that it always falling back some ~20 pixels and snapping precisely when mouse stops. 

Any ideas, how to do a code, where dragged sprite would be precisely on mouse position? Like getting mouse pos right before draw call & then adjusting it, or I don't know :) ?

 

Link to comment
Share on other sites

  • 2 weeks later...

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...