(AGK version: 108.15)
Submitted: 2013-07-13 15:21:38
Setvirtualresolution(640,480)
ResetTimer()
//Create a Red Cross Image
swap()
Drawline(0,0,15,15,255,0,0)
Update(0)
Render()
Drawline(0,15,15,0,255,0,0)
Update(0)
Render()
GetImage(11,0,0,15,15)
SetClearColor(50,50,100)
//Create Sprte
id=CreateSprite(11)
SetSpritePosition(id,100,100)
Repeat
    if (GetPointerPressed()=1)
        hit = GetSpriteHit(GetPointerX(),GetPointerY())
        If hit>0 Then ImageID=GetSpriteImageID(hit)
    endif
    Print("The Image ID is "+Str(ImageID,0))
    Sync()
Until Timer()>20
End
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.