|index||The index of the tile to check.|
With this function you can get the background_index from which
the tile is taken. Please note that this function returns the
index (unique identifier) which is a number and not
the name of the background asset, which would be a string.
tile = tile_layer_find(-1000, mouse_x, mouse_y);
back = tile_get_background(tile);
The above code will first get the index of a tile at the mouse position with a depth of -1000 and then use that value to store the background index of the asset it was created from in the variable "back".