[email protected] Posted April 3, 2019 Share Posted April 3, 2019 def Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 3, 2019 Share Posted April 3, 2019 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. Quote Link to comment Share on other sites More sharing options...
[email protected] Posted April 3, 2019 Author Share Posted April 3, 2019 def Quote Link to comment Share on other sites More sharing options...
botmaster Posted April 3, 2019 Share Posted April 3, 2019 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. objects have a draggable property if draggable, when interaction DOWN > save interaction data + listen (ticker) for touch/mouse position change If touch/mouse position changes we assume the draggable object is being dragged so drag it > again (ticker) + using saved interaction data When touch/mouse release > stop dragging. 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.