User Tag List

Results 1 to 9 of 9

Thread: Is it best to use a dynamic array?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it best to use a dynamic array?

    Hi there,

    I'm trying to use some arrays in a demo I'm making. Basically using them as a way of referring to a table of figures (like looking at a table in excel) and pulling out a figure.

    I've been trying to use the normal array with limited success. There's the excel to array converter from nivram's page which has been helpful, but this is clunky and slow if I want to balance and tweak my numbers.

    I understand that dynamic arrays can read and output to text files. But I can't find any example files for it and I'm finding the help for it tough going - particularly when working how to refer to a place in the array (e.g. row 2, column 3 etc.)

    I just want to load and refer to figures in a simple (4x4) table.

    Am I looking at the correct extension? My thinking is if I use the dynamic array then I can quickly edit text files to adjust figures.

    If there are any examples out there that would be great (have searched the forums already and there's very little on this topic - is that because no-one uses this extension?)

    Many thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump.

    I can't find anything else in the forums on Dynamic Arrays, so am bumping this thread.

  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)
    I have never used this array. I almost always use the Associative Array Extension or the standard inbuilt Array Object.

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

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure.

    The only thing it seems very fiddly using the normal array object due to its proprietary format. It's a hassle using that converter every time I want to make a small change. If I wanted to adjust figures for balancing a game, would I be better off going with an associative array then? Is that the reason the dynamic array isn't used?

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm with Marv. I really like the associative array. Standard array makes certain things a bit simpler, especially when creating a level editor (though it's still pretty easy to do the exact same thing with the associative array, and in some ways adds more functionality when used properly)

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, I'll go have a play with the associative array then.

    Does it read and write to plain text files?

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah it can write to whatever file extension you want. So if you want to save it as data.txt it will do that. The data won't be stored in a tidy format like an ini however.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe I want to look at an ini then. Hmm. It's just that a demo I was making was a 4x4 table and you clicked 2 radio buttons. The values of the buttons corresponded to columns and rows in the table and then the events would read off the corresponding value in the array. Would an ini be able to make a table like this?

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    If you use Groups for X, and Items for Y, I suppose.

Similar Threads

  1. Array dynamic?
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 12th December 2013, 05:22 PM
  2. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  3. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  4. Dynamic Array example files anyone?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 10th March 2010, 12:04 AM
  5. Dynamic Array difficulties.
    By Meanderer in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2008, 12: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
  •