ds_grid_create

Creates a new grid.

Syntax:

GML Code Example

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:

GML Code Example

mygrid = ds_grid_create(10, 10);

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here