ds_grid_value_exists()


データ構造

ds_grid_value_exists

指定のグリッドの矩形領域から指定の値を探します

構文

ds_grid_value_exists(index, x1, y1, x2, y2, val);
index
グリッドのインデックス番号
x1
左上座標(X)
y1
左上座標(Y)
x2
右下座標(X)
y2
右下座標(Y)
val
検索する値

戻り値

Boolean
指定の値が存在すればtrue

説明

この関数は指定のグリッドから矩形領域内に指定の値(数値または文字列)が存在するかどうかチェックします。存在すればtrue、そうでなければfalseを返します

if ds_grid_value_exists(grid, 0, 1, 5, 6, val)
{
  xpos = ds_grid_value_x(grid, 0, 1, 5, 6, val);
  ypos = ds_grid_value_y(grid, 0, 1, 5, 6, val);
}

The above code checks a ds_grid for a specific value within a rectangular region. if it is found, it then stores the x and y position of the value in two variables for later use. 上記コードは、グリッドから指定の値を検索し、存在すれば、その値が存在する座標を保存します

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 926
今日の訪問者: 2
昨日の訪問者: 1
閲覧者: 6