Array To Table

0 favourites
  • 3 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • Didn't really know where to put it, but chose to put it here.

    Array to table

    One thing I find inconvenient about arrays is that it might be difficult to remember what you put where. So I decided to create something which displays an array in a table form. I thought it was useful so that's why I'm posting this. <img src="smileys/smiley1.gif" border="0" align="middle"> I highly doubt that this might be handy to use in a game, but it may help you out when testing.

    All you have to do is download the file and put it in the project you are working on. All you might want to change is the width of the cells.

    <img src="http://img534.imageshack.us/img534/5698/tablenu.png" border="0">

    A rather empty array being drawn in a table at runtime.

    Download

    Download the project file here

    Some tips

    If the table doesn't display properly you might have to adjust the width of the cells.

    ArraySpaces, ArrayX and ArrayY are some variables that are required to display the table. You do not need to change these.

    It's best to chose a font which has a fixed width (all letters take as much space - a 'W' is in the width as big as an 'I'). I chose Lucida Console, you can change this if you'd like.

    Note that it doesn't display the Z-axis.

    I hope it may be of use to anyone <img src="smileys/smiley30.gif" border="0" align="middle">

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, it helped me!

    I was looking for something like this to view and export data to csv.

    Great job!

  • Thanks, it helped me!

    I was looking for something like this to view and export data to csv.

    Great job!

    Thanks :)

    Note that I made some mistakes with the width & height of the array. If I recall correctly the last row & collumn isn't showed. To solve this problem you can make your array bigger (or correct it yourself ;) )

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)