User Tag List

Results 1 to 6 of 6

Thread: Object selection troubles

  1. #1
    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)

    Object selection troubles

    Okay here is the problem:

    1. I have a bunch of active objects that are in the same group

    2. I want to be able to detect an overlap of an active with an object in that group, and then set a flag for that group object when overlapped.

    3. I want to set the flag back when the active is not overlapping that object

    4. If the active overlaps two group objects at once, I want MMF to pick one of the objects and flag it, while ignoring the other object

    How can I do this without fastlooping or doing a foreach through all of the group objects?

    I figured something like just:

    Always - set flag 0 of group objects to off

    If active overlap a group object, turn flag 0 on

    But that will select more than one group object if the active overlaps them. If I do "pick at random" then it rapidly swaps back and forth between the two overlapping group objects...

    Any easy solution to this? I'm trying to do this for a mobile game so avoiding looping through all objects would be extremely crucial.

  2. #2
    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)
    No replies...

    Nobody has a solution?

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was a bit hard to figure out, but there you go, no loops:

    https://dl.dropbox.com/u/14962632/Public1/PickIT.mfa

  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)
    Thanks for the example, but I meant having a different active overlapping the others... not the same actives overlapping each other. I tried just adding in a new active and Always setting it's position to the mouse, and then checking it's overlap to the other objects. (I changed them to static to make it easier to test) and then it just lights up all the actives it is overlapping... which is not what I want.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, i though you meant qualifiers, when you said groups. You can do this fairly easy by using a fixed value.

    Here: https://dl.dropbox.com/u/14962632/Public1/PickITUP.mfa

    Check frame 1 and 2, depending on what you want.

  6. #6
    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)
    Awesome I think this is just what I need! Dunno why I was struggling with this.

Similar Threads

  1. More troubles with object selection
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th March 2012, 09:58 PM
  2. Zip object troubles
    By bertus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd February 2010, 08:23 AM
  3. Object selection
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 2nd September 2009, 10:56 PM
  4. Troubles with The Platform Movement Object
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th March 2009, 11:41 AM
  5. Download Object troubles
    By DragonMC in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2008, 01:35 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
  •