User Tag List

Results 1 to 4 of 4

Thread: Cloning vs Copying

  1. #1
    Clicker Multimedia Fusion 2
    Gullyking's Avatar
    Join Date
    Dec 2009
    Location
    In the darkest recesses of the woods.
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cloning vs Copying

    I've been trying to create a turn based strategy game. Basically, the objects on the screen are player units and map spaces. I want the map spaces to change color based on the range of the selected unit. I can make them change ink effect upon selection, however, when cancelling the move, Only the original space turns back to the original color. Not the copied/cloned ones.


  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Cloning vs Copying

    When you clone an object, the cloned object is a completely new object that no longer has anything to do with the orignal object. You can "fix" this by giving both objects the same qualifier, and assign conditions and actions to the qualifier instead of the specific active object.

    When you duplicate an object, you don't make new object, rather you make several instances of the same object. That doesn't mean however that they are the same object. If you do something on one of the duplicates, it will not affect the others, but if you do something to any object of that type, it will affect all of them.

    Example:

    * Start of frame:
    - Destroy Enemy Unit
    [color:#006600]// All enemy units are destoryed[/color]

    * User click on Enemy Unit
    - Destroy Enemy Unit
    [color:#006600]// Only the Enemy Unit that is involved in the event is destroyed.[/color]

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Cloning vs Copying

    Gullyking, I have a dungeon crawl example on my website that has the squares lighting up. Maybe it can help. Look at the Site Map.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  4. #4
    Clicker Multimedia Fusion 2
    Gullyking's Avatar
    Join Date
    Dec 2009
    Location
    In the darkest recesses of the woods.
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cloning vs Copying

    Thanks guys. Let me check it out.

Similar Threads

  1. Cloning Active Object is fine but any way to clone all the events associated with it?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 3rd June 2012, 05:19 PM
  2. MMF2 - Enhancement - Cloning Direction
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th March 2010, 01:16 PM
  3. Preparing games for cloning (resizing)
    By Popcorn in forum Articles
    Replies: 10
    Last Post: 5th April 2009, 04:22 PM
  4. Cloning Frames
    By Mazeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th November 2008, 07:28 PM
  5. copying frames.
    By bunnyonion in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th July 2008, 08:48 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
  •