(AGK version: 108.15)
Submitted: 2013-07-06 07:21:50
Setvirtualresolution(640,480)
ResetTimer()
//Create and display a Backdrop
For x=0 to 1024 Step 10
    DrawLine(0,0,x,600,Random(0,255),Random(0,255),Random(0,255))
    Update(0)
    Render()
Next x
GetImage(1,0,0,640,480)
CreateSprite(1,1)

CreateText(1,"AGK is cool!")
SetTextSize(1,30)
FixTextToScreen(1,1)
//FixTextToScreen(1,0)

//Move the screen viewport to see the effect on the Text Box
Repeat
    For s=1 to 10 step 2
        SetViewOffset(0,s)
        Sleep(500)
        Sync()
    Next s
    Sync()
Until Timer()>16
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.