ds_grid_value_disk_y(id,xm,ym,r,val)

From ENIGMA
Jump to navigation Jump to search

Description

Returns the Y location of the cell with value val inside the specified disk.

Parameters

Parameter Data Type Description
id int index of the data structure grid
xm int x coordinate of the disk center
ym int y coordinate
r int radius of the disk
val variant value of the cell

Return Values

int: Returns the y coordinate of the cell with the value in the disk region.

Example Call

// demonstrates getting the coordinate of the cell containing a value with a disk region of a grid
var xx, yy;
xx = ds_grid_value_disk_x(grid_puzzles, 8, 8, 4, "Puzzle");
yy = ds_grid_value_disk_y(grid_puzzles, 8, 8, 4, "Puzzle");

See Also