User Tag List

Results 1 to 3 of 3

Thread: Array object not reading/writing properly

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2013
    Location
    Heber City, Utah, USA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Array object not reading/writing properly

    I have been trying to find the solution to this problem for weeks!

    Attached you will find an example of the problem, which is:

    1. At Start of Frame, I load an Array object with 10 rows of data. The data represents a series of (test) coordinate points (X, Y).
    2. I also have a second array that I use later on.
    3. On Always, I display the contents of both arrays.
    4. On pressing the "Display" button, I display the contents of both arrays in two individual List objects.
    5. On button "Switch", I am trying to reverse the order of the points in the first Array. I am NOT trying to "Sort" the array contents. I just want to reverse the order of the points as they stand in the array.

    Problem:
    Even after I display the contents of the arrays (on Always), none of the values seem to be entered. They are all zeros.

    I have tried:
    1) loading from a file
    2) assigning the array values (Write value to XY)
    3) Clearing the array (and NOT clearing the array) before adding the initial values.
    4) using other array objects such as: Dynamic Array, Array X, Internal List, and even my own extension (which didn't work so well - another problem).

    If anyone can take a look and see what I am doing wrong, I would be very grateful!!!


    List Array Test.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Brovic's Avatar
    Join Date
    Jul 2006
    Location
    France
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Normal, you are trying to assign values to String arrays.
    In the arrays settings choose type of array : Number array and uncheck Base 1 index and that will work.

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jun 2013
    Location
    Heber City, Utah, USA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! That was an embarrassing mistake!

Similar Threads

  1. [RC5 BUG] List Object still not displaying properly
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 9
    Last Post: 5th March 2013, 05:30 PM
  2. Does The Big Box object work properly for 64-bit?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 22nd September 2011, 05:22 PM
  3. Reading from array
    By stAtrill in forum The Games Factory 2 - Technical Support
    Replies: 10
    Last Post: 19th September 2007, 09:48 AM
  4. Writing to array from behavior (244 b6)
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 21st March 2007, 08:09 AM
  5. Problem writing value to number array > returns 0
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd September 2006, 04:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •