User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12

Thread: Comparing multiple instances of 2 objs - no loop?

  1. #11
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing multiple instances of 2 objs - no loop?

    Well at least you can do it with only one loop.
    Always
    -Start loop "Players"
    On Loop "Players"
    +Compare to alt val A of "Character" == loopindex("Players")
    +Compare to alt val B of "Group.Equipment" == fixed("Character")
    -Set position of "Group.Equipment" to 0,0 from "Character"

    Replacing fixed("Character") by whatever id you use to match equipment to a character.

    A lot of many-to-many code uses two loops, but you only need to loop through one object to turn it into the one-to-many events MMF is good at.

  2. #12
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing multiple instances of 2 objs - no loop?

    OK, I will try to optimize it this way, thank you!

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Multiple instances
    By Windybeard in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd January 2012, 01:20 PM
  2. An issue comparing specific instances of objects
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th May 2010, 10:53 PM
  3. Bug with comparing a var to a loop index
    By mobichan in forum File Archive
    Replies: 2
    Last Post: 6th January 2010, 03:45 PM
  4. multiple instances spawning at multiple places
    By CPW in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 22nd February 2009, 12:38 AM
  5. Multiple instances of app.
    By Bruto in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th April 2008, 04:03 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
  •