ds_grid_create

Creates a new grid.

Syntax:

ds_grid_create(w, h);


Argument Description
w The width of the grid to be created.
h The height of the grid to be created.


Returns: Real.


Description

With this function you can create a new ds_grid data structure of the specified cell width and height. This function returns an id which must be used in all further functions that deal with this ds_grid.


Example:

mygrid = ds_grid_create(10, 10);

This creates a grid 10 cells high and 10 cells wide.


Back: DS Grids
Next: ds_grid_destroy
© Copyright YoYo Games Ltd. 2018 All Rights Reserved