(AGK version: 108.13)
Submitted: 2013-06-12 23:52:48
//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)
Login to post an example of your own.