(AGK version: 108.15)
Submitted: 2013-07-08 02:18:06
Setvirtualresolution(640,480)
ResetTimer()
px=150:py=150
id=CreateParticles(px,py)
SetParticlesSize(id,2.0)
SetParticlesLife(id,8.0)
AddVirtualButton(1,580,420,80)
SetVirtualButtonText(1,"X+")
Do
    SetParticlesPosition(id,px,py)
    If GetVirtualButtonPressed(1) Then px=px+5
    If Timer()>20 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.