global grass1Img,grass1
function ldObjs()
grass1Img = LoadImage("grass.png")
stnX = 8
stnZ = 8
for stnCX = 1 to 400
if stnX = 328
stnX = 8
stnZ = stnZ + 16
endif
stnFlr = LoadObject("grass.obj") //CreateObjectBox(16,16,16)
SetObjectImage(stnFlr,grass1Img,0)
SetObjectPosition(stnFlr,stnX,0,stnZ)
stnX = stnX + 16
next stnCX
endfunction
This is supposed to create 400 grass blocks(that are 16x16x16) across the floor from 0,0(XZ) to 320,320(XZ)
Nothing seems wrong and everything works fine until I reach a specific X Y Z position then the fps drops to about 40 FPS.
I'll provide the specific position if needed.
I love games, who doesn't?