User Tag List

Results 1 to 5 of 5

Thread: Copy contents of one List object to another

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy contents of one List object to another

    Is there an easy way to copy the items from one List object to another?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, by using a loop.

    + Start of frame (or when you want to copy the list)
    - [Special Object] Start loop "copy": List Nb Lines( "List 1" ) times

    This will start the loop called copy. It will loop however many lines in the list there are.

    + On loop "copy"
    -
    [List 2] Add a line: List Line Text$( "List", LoopIndex("copy")+1)

    This will check for the loop "copy", and then add a line based on the current loop index of the "copy" loop. If your first list has a 1-based index (set in the properties), then just remove the "+1".

    Example.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay I am using the iOS Exporter is the Special Object available to me?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, it's the first object that you see when adding a new condition or action (the one with a computer screen).

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Much thanks. Works great.

Similar Threads

  1. copy value of edit box in to array or list object???
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th November 2013, 07:38 PM
  2. List Object contents as Values
    By Soilydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th August 2013, 12:14 AM
  3. Load folder contents in List object
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th May 2012, 11:32 PM
  4. how to copy the text content of the "list" on a string?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th February 2012, 10:30 PM
  5. Copy and Paste in the event list editor
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 5th January 2009, 11:03 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
  •