When I first started this blog, I wanted to learn Javascript, I quickly learned that with all coding languages, absurd amount of similarities exist and most of the differences I’ve seen so far are only in syntax.
Today, I stumbled upon a video game creating suite called Construct 2.0, often used in games on the popular site, Newgrounds.com
As with all languages, storage of data is important and today I stumbled upon a tutorial for the usage of arrays and why they are so important.
In Construct 2.0, all coding is done in an amazingly well done, user-friendly UI with HTML5, a code that hopefully most websites will soon adopt because of its functionality to survive without the use of flash.
In Computer Science classes, Arrays were taught in such a boring way that I felt like it was almost impossible to follow. Take some values, then move them around in the array. I was taught that “knowing this” would someday be important in the programming world but no real world application would ever be given. Today I finally found something that changed my mind on the subject matter.
With the use of an array, you set values in a list who’s length, height, and width are set by you. You can make a 2-dimensional array or a 3-dimensional array depending on complexity but for the tutorial we can use the example of a 1-line array with a width of 5.
In an array with a width of 5, you actually have 6 spaces for your list of values because numbering in programming languages begin at 0. If you set your array to end at 5, you are saying that the spaces in your list are numbered as 0, 1, 2, 3, 4, 5, thus 6 spaces.

In gaming, let’s say I need to set a high score. Instead of having to set 6 different variables for 6 levels to record the gamer’s high score, I can just use an array and then edit it’s variables in Construct 2.









