(AGK version: 108.15)
Submitted: 2013-07-09 16:07:12
Setvirtualresolution(640,480)
ResetTimer()
//Create a Green Cross Image
swap()
Drawline(0,0,15,15,0,255,0)
Update(0)
Render()
Drawline(0,15,15,0,0,255,0)
Update(0)
Render()
GetImage(1,0,0,15,15)
SetClearColor(50,50,100)
//Create Sprtes
For i=1 to 5
    CreateSprite(i,1)
    SetSpriteX(i,i*25)
Next i
AddVirtualButton(1,580,420,80)
SetVirtualButtonText(1,"Delete")
Do
    If GetVirtualButtonPressed(1)
        DeleteAllSprites()
    EndIf
    If Timer()>15 Then Exit
    Sync()
Loop
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.