Jump to content



Recommended Posts

No, but there are enough drag&drop examples of different quality. https://pixijs.io/examples/?v=v4.8.7#/projection/basic.js

There are MANY problems, like, how do you distinguish click from drag start? Different games do it differently, we can force it on user, that's why drag wasnt added, and unless someone with big brain makes a very good solution that is worth our lib, we wont add it.

Link to comment
Share on other sites

I'm satisfied with my solution although it is not a multitouch solution (but I think it could become one fairly easily), it has been very reliable so far.

  1. objects have a draggable property
  2. if draggable, when interaction DOWN > save interaction data + listen (ticker) for touch/mouse position change
  3. If touch/mouse position changes we assume the draggable object is being dragged so drag it > again (ticker) + using saved interaction data
  4. When touch/mouse release > stop dragging.
  5. we also have a change range value that touch/mouse has to reach to assume a drag is attempted.  

It's pretty solid so far.


[email protected] Emulating AS2 would be like developing a chat app with smoke signals (AS2 died in 2004!!!). let's be serious, you would have have a better point with AS3. 

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.

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.


  • Recently Browsing   0 members

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