(AGK version: 108.15)
Submitted: 2013-07-20 17:13:47
Setvirtualresolution(640,480)
ResetTimer()
//Create test sprite cubes
For i=1 to 10
    id=CreateSprite(0)
    SetSpriteSize(id,32,32)
    SetSpriteColor(id,255,0,0,255)
    SetSpritePosition(id,Random(0,960),-30)
    SetSpritePhysicsOn(id,3)
    SetSpritePhysicsVelocity(id,0,Random(10,50))
    SetSpritePhysicsAngularVelocity( id,5 )
Next i
Do
    Sync()
    If Timer()>20 Then Exit
Loop
End
(AGK version: 108.15)
Submitted: 2013-07-24 02:04:27
Setvirtualresolution(640,480)
ResetTimer()
//Create test sprite cubes
For i=1 to 10
    id=CreateSprite(0)
    SetSpriteSize(id,32,32)
    SetSpriteColor(id,255,0,0,255)
    SetSpritePosition(id,Random(0,960),-30)
    SetSpritePhysicsOn(id,3)
    SetSpritePhysicsVelocity(id,0,Random(10,50))
    SetSpritePhysicsAngularVelocity( id,5 )
Next i
Do
    Sync()
    If Timer()>20 Then Exit
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.