Arrays are an ideal way to store organized
data, such as:
Keeping track of player’s weapons, whether available, and how many they have
Storing names and associated data, like height or birthday
Arrays can hold an assortment of data and is not limited to variables. You can store sprite names, sounds, instance ids, and more.
Array Example
An example of
1-dimensional array, holding the names of some planets:
planet[0]= "Mercury";
planet[1]= "Venus";
planet[2]= "Earth";
planet[3]= "Mars";
planet[4]= "Jupiter";
planet[5]= "Saturn";
planet[6]= "Uranus"; ...