fela98 Posted November 6, 2014 Share Posted November 6, 2014 Hi, I'm relatively new to Pixi. I have a problem similar to the one mentioned in this post:http://www.html5gamedevs.com/topic/5766-bunny-drag-example-with-correct-mouse-offset/?hl=%2Bdrag+%2Bpixi I used the code from the post and it worked seamlessly. However, when i began rotating the Sprites the offset became wrong, and the sprite jumps to another location when i begin dragging it. Do i have to use some trigonometric function to reverse the rotation? How can I do this? Here is a version with rotation:http://jsfiddle.net/cXfpq/2/ Here without rotation:http://jsfiddle.net/dirkk0/cXfpq/ Thanks in advance! Felix Quote Link to comment Share on other sites More sharing options...
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.