Like this (untested, I did it in notepad
)...
rem Landscape App
SetDisplayAspect( 4.0/3.0 )
// Create Sprite
spr = CreateSprite (0)
SetSpriteVisible (spr,0)
global dim cspr[10]
for i = 1 to 10
if GetSpriteExists (cspr[i]) = 0 then CloneSprite (cspr[i],spr)
SetSpriteVisible (cspr[i],1)
SetSpritePosition (cspr[i],Random (0,100),Random (0,100))
Next i
do
Sync()
loop
And before anyone says anything, I know arrays are global by default! Just a habit of mine
EDIT: And behdadsoft, might be better creating your own thread in future
Sorry SoftMotion3D...