Setvirtualresolution(640,480)
ResetTimer()
idt=CreateText("Example Text")
SetTextPosition(idt,140,140)
SetTextDepth(idt,1000)
SetTextSize(idt,50)
SetTextColor(idt,0,255,0,255)
id=CreateParticles(150,150)
SetParticlesSize(id,3.0)
SetParticlesLife(id,8.0)
SetParticlesDepth(id,999)
AddVirtualButton(1,580,420,80)
SetVirtualButtonText(1,"Depth")
Do
If GetVirtualButtonPressed(1) Then SetParticlesDepth(id,1001)
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)