User Tag List

Results 1 to 2 of 2

Thread: Still having trouble dealing with multiple instances of one object

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Still having trouble dealing with multiple instances of one object

    I feel like I have progressed very much in my knowledge on mmf and how to do things over the years. There is however one part I still always have problem with, and that is handling multiple instances of one object, interacting with other objects.

    For example, say I have a game where you have a warcraft style game where you have workers going around cutting down wood for you. As long as you have one worker everything is fine. Just pick a tree at random, have the worker go there and cut it down, go to next and so on. But I always get problems when I am dealing with multiple ones. So now I have 2 or 3 workers that when idle should go to a free tree (not one already targeted by another worker) and start cutting on it. Instantly I get in all sorts of problems where workers "cluster up" on the same spot, goes to the same place, stops altogether, and all sorts of "bugs" i can't solve.. :/

    What is the easiest way to deal with something like this? Should I use ForEach loops (the ones inbuilt in the new 2,5?) Or is that not necessary? I have done this kind of thing before and eventually got it to work, but it seems I never feel I get a clean way to do it that feels intuitive and straightforward :/

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sounds like you need a fastloop.

    If you were able to manage to do things without fastloops, I'd imagine it would involve use of automatic pairing. I found this tutorial very informative.

Similar Threads

  1. Using the Platform Movement Object for multiple instances of one enemy, help!
    By edman3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 29th August 2017, 12:46 PM
  2. How do you reference multiple instances of the same active object?
    By Cybert9 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd February 2012, 01:33 AM
  3. Shoot object of multiple instances
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st October 2011, 03:58 PM
  4. Multiple instances with platform movement object?
    By CPW in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th February 2009, 12:08 AM
  5. Multiple Instances of Object glitch
    By JimJam in forum File Archive
    Replies: 10
    Last Post: 5th March 2008, 11: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
  •