With this function you can copy the contents of one grid into another one. Both grids must have been created previously using the ds_grid_create function.
|destination||This index of the grid to copy to.|
|source||This index of the grid to copy from.|
n_grid = ds_grid_create(ds_grid_width(a_grid),
The above code creates a new ds_grid, based on the width and height of a previously created grid, then copies the information form the previous grid to the new one. Finally it clears the old grid so that all cells have a value of -1.