リファレンス URL:bbox_top

「実数 (real) 」で値取得。

*Read Only

スプライトのバウンディングボックス(bounding box)=コリジョンマスクの Y Top 位置を実数で保存している変数。読み取り専用。オブジェクト・インスタンスがスプライト(外観)を設定されていない場合、この変数は常に 0 を返す。

*YoYoGames の Document は 1 を返すと書いてあるけど間違い。Debug Mode から確認できる、Sprite が指定されていない場合は 0 を返す。

  • bbox_top
  • bbox_bottom
  • bbox_right
  • bbox_left
バウンディングボックスについては上記4つの変数がある。 スクリプト・サンプル
draw_rectangle(bbox_left,bbox_top,bbox_right,bbox_bottom,1); // Sprite の Bounding box (矩形領域)を Draw で表示する
Variables (Instance ) /bbox_top

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.