User Tag List

Results 1 to 8 of 8

Thread: Trying to drag objects to re-arrange

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Trying to drag objects to re-arrange

    I have a row of active objects, and I would like the player to be able to drag (drag drop movement) and drop any one one item anywhere in the row and have the other items slide left or right as needed so the dropped item can fit into place.

    I've been trying various things for a few days, and I can't seem to pull it off.

    Can anyone provide any assistance?

    I don't really have an MFA to share, since nothing I've done has even come close to working right...

    In the picture I've uploaded, imagine you want to drag Box 5 and drop it between box 1 and box 2. Box 1 shouldn't move, but boxes 2 through 4 should shift to the right. Box 4 should be where box 5 originated.
    Images attachées Images attachées

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've tried several new attempts today. In my mind this seams like it should be so easy. I just can't make it work.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ok, I've managed to get something that ALMOST does the trick.

    The problem is that I can't find a fool-proof way to prevent unwanted overlapping after dropping a box.

    Note that this is stripped down, and all of the other pieces to the forthcoming game are removed except the variables.

    Also note that I intend to keep the 5 hidden actives as place holders, since they serve other functions not included here.

    If anyone can find a good way to prevent dropped box overlaps (and an empty position), I would really appreciate it! I'm too close to this, and need a fresh set of eyes on it!
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Maybe I should have posted all this in the main forum, I think it may have gotten better traction if more eyes were on it...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If anyone has a moment, please take a look at the attached mfa... I need some suggestions on how to clean this up and make the box that was drag/dropped go to the proper position (rather than two blocks going to the same position).

    Thanks!
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re-arrange without overlap - Better late than never?

    Tuna - I'm doing something similar in my own project, so came up with an example you might be able to adapt (if it's not too late!)
    It uses the ForEach object (as well as MoveIt)
    I think the problems you had were probably to do with Qualifiers (the ForEach object should help) and moving objects with MoveIt before they'd finished

    It's not an iOS project (since they end up being bigger!) but you should be able to make it one without any problems.
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Its never too late... ideas don't die, they just sit on the back burner until needed! I'll check it out, thanks!

    EDIT: ok, cool, it works, and I appreciate that you shared this!

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get fastest help on non-iOS coding in the main MMF2 forums.

Similar Threads

  1. "Arrange by" order objects by value (minimal/no extensions)
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th February 2012, 08:28 AM
  2. "Arrange by" order objects by value
    By DistantJ in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 23rd February 2012, 11:40 PM
  3. Select and drag multiple objects
    By crugh in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th March 2011, 01:28 PM
  4. Drag/Drop objects between Sub-Application windows?
    By Mizgiwir in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th October 2010, 12:31 AM
  5. Click-and-drag to place objects, my qualm...
    By Taofeld in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th July 2006, 07:44 AM

Posting Permissions

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