User Tag List

Results 1 to 8 of 8

Thread: How to make multiple copies of an active move toward the same point?

  1. #1
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)

    Join Date
    Oct 2011
    Location
    Oregon
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make multiple copies of an active move toward the same point?

    I'm making an RTS, and have gotten down the ability to select multiple units and move them separately , but when you select more than one of the same unit, and try to move them to the same point, it doesn't work, because it only takes the coordinates of one of them, and the others don't go to the right position.

    I'm just using a modified version of the first file on this page: (Thanks marv.)
    http://www.castles-of-britain.com/mmf2examplespage4.htm


    Also, if one is already in the process of moving, and I tell another one to move, before the first has reached its destination, the first one doesn't go to the right position.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    I tried creating a similar RTS once.
    ...
    I am pretty sure i know why you are experiencing problems.

    PROBLEM
    In short MMF2 has, in many cases, troubble with handeling each instance of an object individually ( this is especially true for RTS games, where you normally have multiple instances of object "Soldier", "Tanks", "airplane" etc present at the same time in the application ).

    SOLUTION
    You need to use the ForEach extencion/ object which will handler each 'instance' of an object ( "Soldier", "Tanks", "Airplane" etc ) seperatly so they can act independantly.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    MMF2 does NOT have trouble handling each instance of an object individually - I'm so sick of hearing that. You just need to learn how it works.
    Bear in mind though, that unless you're pretty experienced with MMF2, you really shouldn't be trying to make an RTS to begin with - they're second only to MMORPGs in terms of difficulty and complexity.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    For most cases MMF2's inbuilt object handling will work with flying colors - unless you try to circumvent it with object-independent things. Try letting MMF2 do magic, and only resort to alternatives if MMF2 doesn't give the functionality you need.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)

    Join Date
    Oct 2011
    Location
    Oregon
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I'm going to switch this project over to a turn based game, rather than an RTS, since I think I already know how to do everything I'll need for that.

    If one of you could explain how to do what I need without foreach, I'd definitely like to hear it, just so I know how for future reference. (I still do want to make an RTS at some point. lol)

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Good decision Turn-based is more fun anyway ("realtime strategy" is a contradiction in terms).

    A very basic RTS selection/movement engine:
    https://skydrive.live.com/redir.aspx...A!131&authkey=!
    It's lacking essential features like pathfinding, waypoints, collision detection between units, etc - like I said before, an RTS is going to be *very* complicated to make.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    MuddyMole by any chance do you know any good Tutorial/Article explaining how MMF handles those sort of things?

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I'd definitely look into the Advanced Pathfinding extension - that's probably your best bet, as I know it can handle all those things (and they'd be very difficult otherwise).
    It has quite a few examples included too.

    If you don't have the examples, re-download from here:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=69250#Post69250

    Other than that, just google and see what you find - there are certainly bits and pieces on TDC.

Similar Threads

  1. Multiple Copies of One Object
    By Wolfking_Warrior in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd January 2013, 05:50 AM
  2. Move straight from one point to the next?
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2012, 08:14 PM
  3. Creating multiple detectors for copies of actives
    By Brooks2000 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 15th February 2012, 07:13 PM
  4. Multiple copies of an object with certain events
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th February 2011, 04:32 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
  •