//Create a blank sprite (completely white)
test=CreateSprite(0)
SetSpriteSize(test,10,10)
SetSpritePosition(test,45,45)
do
if GetPointerState()
if GetSpriteHitTest(test,GetPointerX(),GetPointerY())
print("Mouse is over Sprite")
endif
endif
if GetPointerReleased()
if GetSpriteHitTest(test,GetPointerX(),GetPointerY())
end
endif
endif
loop
Help make AGK better by submitting an example for this command! (All examples are subject to approval)