プレイ日記
Scientist Speedy1101
What are some ways of highlighting a sprite's hitbox?
3そうだね
プレイ済み
返信[1]
親投稿
Scientist Speedy1101
What about some more complicated ways?
1そうだね
プレイ済み
返信[2]
親投稿
Scientist Speedy1101
Thanks, but I have an idea. Use GBOX and put the starting coordinates at the sprite u,v and the end coordinates at the sprite's w,h. That will have to be adjusted when using SPHOME but that might work?
1そうだね
プレイ済み
返信[3]
親投稿
Perska Perska02
Try this function. Make sure you actually have defined the hitbox with SPCOL first. DEF SHOW_HITBOX ID%, COL% VAR X#,Y#,W#,H#,XX#,YY#,S%,SX#=1,SY%=# SPOFS ID% OUT XX#,YY# SPCOL ID% OUT X#,Y#,W#,H#,S% IF S% THEN SPSCALE ID% OUT SX#,SY# GBOX XX#+X#*SX#,YY#+Y#*SY#,XX#+(X#*SX#+W#*SX#-1),YY#+(Y#*SY#+H#*SY#-1),COL% END Usage: SHOW_HITBOX spriteID, color
0そうだね
プレイ済み
返信[4]
親投稿
Perska Perska02
Note that the box may be off, but it gets the job done. Please tell me if this does not work for whatever reason.
0そうだね
プレイ済み
返信[5]
親投稿
Perska Perska02
(I forgot to mention, but you should consider doing GPRIO -256 (if you haven't already). This way, the graphic page will be over everything.)
0そうだね
プレイ済み
返信[6]
親投稿
alonso periquitosxl
use this function, may help, if you download my game budgie you can find this in the library game, in the first line.
0そうだね
プレイ済み
返信[7]
親投稿
alonso periquitosxl
you see something like this
0そうだね
プレイ済み
返信[8]
親投稿
Scientist Speedy1101
Thanks! I'll try all of those.
0そうだね
プレイ済み