プレイ日記
Kalvin Noctise
Can someone explain how to use bgget for background detection?
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
BGGET returns a 16-bit value, where each bit determines information about the BG tile. The first 12 bits will determine the ID of the BG tile, which is probably what you want. You can find information about other bits in the help entry. To get the values of the bits, you can do an AND operation with the return value and a value whose on-bits match the ones you want to get.
0そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
For example... TILE=BGGET(0,10,20,1) TILEID=TILE AND VAL("&B111111111111") ...will get you the BG tile ID for a BG tile on layer 0 and coordinates <10,20> in terms of screen pixels.
1そうだね
プレイ済み