User Tag List

Results 1 to 6 of 6

Thread: Multiple duplicate objects overlapping, not individually responding to Qualifiers.

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Multiple duplicate objects overlapping, not individually responding to Qualifiers.

    I've run into an interesting issue. I've made a grid of 2 different actives, each with its own qualifier. They'll be invisible eventually, so ignore the aesthetic.

    zzz.png

    I have square tiles set over that grid. I'm trying to make it so when you click/right click on grid lines, it moves the tiles that are overlapping it either +/- on their X/Y axis based on if you clicked a vertical or horizontal grid line. That works...except one issue. It moves ALL the tiles, not just the tiles overlapping that line! The events are linked to the qualifiers, not the actives, which I thought would avoid this issue.

    The movement is based on the object values being 0 or greater. They are -1 until clicked. When it hits a certain value (derived from the object size), it resets back to -1, stops moving and waits to be clicked again.

    Any idea what to do?

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    I've tried clones instead of duplicates, having the variables of the moving active affect things, rather than the grid line object, etc. Nothing seems to be working.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I'm not 100% certain I understand, but I think I might.

    If you say:
    + Player left clicks on "Row"
    + "Tile" is overlapping "Row"
    -> Tile: Set X position to X("Tile") + 50

    ...that will move ALL the tiles.

    If you say:
    + Player left clicks on "Row"
    + "Row" is overlapping "Tile"
    -> Tile: Set X position to X("Tile") + 50

    ...that will only move the correct tiles.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Here is your problem in a nutshell. Your single event is actually two separate conditions.

    1. is the player clicking on a vertical/horizontal grid line?

    2. is a tile object overlapping a vertical/horizontal grid line object?

    Note #2 there... Because MMF isn't selecting ONLY the grid lines you clicked in the previous condition. It's checking all tiles overlapping all grid lines. Simply checking an "on mouse button clicks object" condition does not actually select that object to be used in following conditions.

    Now, in the action of that condition, it WILL position the tiles based on the clicked grid lines, because MMF does recognize the grid line objects you clicked... just not in the conditions. So essentially MMF is doing this:

    1. user clicked grid line object? yes.
    2. tiles overlapping grid lines? yes.
    3. move "tiles overlapping grid lines" (all tiles that are overlapping any grid lines) to the grid line object's x/y that was clicked.

    So MMF is working properly... you just need to actually isolate the grid lines first and then fastloop through your squares that are overlapping the isolated grid lines.

    My solution would be to toggle a flag when a grid line is clicked, when the flag is on, then fastloop through all tiles and check to see if each tile is overlapping the grid line that has it's flag toggled on. If so, then move that specific tile during the fast loop, and then continue. Once the fastloop is done, toggle off all grid flags.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Also I don't think you understand what Qualifiers are actually supposed to do. They don't individualize each instance or anything. They are just used to group different objects into one object.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You don't need fastloops - the method I suggested does work.

Similar Threads

  1. Objects shooting individually.
    By MangoMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 6th October 2011, 03:03 PM
  2. Multiple objects overlapping an obstacle
    By gkinfinity in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th August 2011, 05:10 AM
  3. qualifiers overlapping
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th March 2011, 09:21 PM
  4. Objects not responding to collisions/overlapping
    By CloudJDR in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th July 2010, 09:23 PM
  5. Treating objects in Qualifiers individually
    By Gunnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd January 2010, 07:28 PM

Posting Permissions

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