Hi, AliceSim1, you can check without sprite. AABB function.
do
print(GetBoxHitTest(50,50,50,50,1))
Sync()
loop
function GetBoxHitTest( x as float, y as float, width as integer, height as integer, debug as integer )
if debug = 1
_color = MakeColor(255,0,0)
DrawBox( x-width/2, y-height/2, x+width/2, y+height/2, _color, _color, _color, _color, 0 )
endif
eX#=x-width/2
eY#=y-height/2
eW#=x+width/2
eH#=y+height/2
x_tap#=GetPointerX()
y_tap#=GetPointerY()
if x_tap# > eX# and x_tap# < eW# and y_tap# > eY# and y_tap# < eH#
result = 1
else
result = 0
endif
endfunction result