The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: drag and snap

  1. #1
    280
    posts
    Registered User

    drag and snap

    how to make dragged object snap to any corner of the stage like for example winamp player snaps to corners?

    if it close to the target remove drag ability and tween to target?
    thats how i am imagine it but what do you guys think?

  2. #2
    i'd say something like if draggedobject.x and y are < 100 snap to top left corner, if you are using TOP_LEFT stage align that is. you could then put a tween or something on it to, but make a rule for each corner, how far out you want to snap it from.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012