ds_grid_multiply

Multiplies the value of a given grid cell by a given amount.

Syntax:

GML Code Example

ds_grid_multiply(index, x, y, val);


Argument Description
index The index of the grid.
x The x position of the cell in the grid.
y The y position of the cell in the grid.
val The value to multiply with the cell.


Returns: N/A


Description

This function will multiply the value of a the given grid cell by the specified amount.

NOTE: This function will only work with real numbers, not strings.


Example:

GML Code Example

ds_grid_multiply(mygrid, 5, 5, 2);

the above code will multiply the value stored in the given ds_grid cell by 2.





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