Index of an Array or other Data Structures
thisArray[ i ]
myList[ |i ]
i is the index of the array or list. If used in reference to a map, it is a misnomer for a map key.
Index of a Resource (e.g., sprite, object, path, timeline)
sprite0
obj_FatCow
rm_Stage1
The name of the resource, without quote ( " ) marks around it, is the index. Specifically, the name is a constant with the value of the actual resource's numerical index. In Game Maker Studio, the actual index is determined when the program is compiled. Resources have an index ranging from 0 up to the quantity of that particular resource. There are built-in variables for referencing an instance's particular indexes: sprite_index, object_index, timeline_index.
Index of a Script
get_nearest_tile()
Like other resources, the index of a script is its name, without quote ( " ) marks and without the parentheses. Just like other resources, the index is numerical. In this example, the index of the script would be get_nearest_tile.