Setvirtualresolution(640,480)
ResetTimer()
id = CreateParticles(150,150)
SetParticlesSize(id,2.0)
SetParticlesLife(id,8.02)
SetParticlesMax(id,Random(10,50))
AddVirtualButton(1,480,420,80)
SetVirtualButtonText(1,"Start")
AddVirtualButton(2,580,420,80)
SetVirtualButtonText(2,"Stop")
Do
If GetVirtualButtonPressed(1) Then SetParticlesActive(id,1)
If GetVirtualButtonPressed(2) Then SetParticlesActive(id,0)
If GetParticlesMaxReached(id) Then Exit
Sync()
Loop
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)