2/13/2023 0 Comments Game maker studio 2 code list![]() The above code gets the value from position 0 of the array " a" then outputs it to the console, which - based on the contents of the array shown in the image above - would output 125. To access the array you would do something like the following: This is called a 1D (one-dimensional) array, and as you can see the array is stored in the variable " a" and contains multiple values. ![]() ![]() The image below shows a schematic for a basic array: An array is simply a data type that is assigned to a variable, and it can contain not just one value, but multiple values. Before going any further let's clarify what an array actually is and how it's structured.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |