#Entity object number is very high (over 10000).
Posted: Thu Jul 26, 2012 12:12 am
				
				Hey,
I know I'm not THAT good at maths, but can someone explain me how i get this error here (see subject)? isn't it 4*4*4? why does the number get higher than 10000? it'd be very nice of anyone of you can explain and maybe correct this. This is going to be a procedure that generates some cube entities (like a world generator, but at the moment only with one type ^^). I really hope someone can help me here.
the Code:
I get the error at line 6. 
Thank you in advance
			I know I'm not THAT good at maths, but can someone explain me how i get this error here (see subject)? isn't it 4*4*4? why does the number get higher than 10000? it'd be very nice of anyone of you can explain and maybe correct this. This is going to be a procedure that generates some cube entities (like a world generator, but at the moment only with one type ^^). I really hope someone can help me here.
the Code:
Code: Select all
Procedure Generate ()
  For i = -10 To 10 Step 5
    For j = -10 To 10 Step 5
      For k = -10 To 10 Step 5
        Cube = CreateCube (#PB_Any,5)
        CreateEntity (Cube,MeshID (Cube),LoadTexture (0,"Tetromino Viertel.bmp"))
        EntityLocate (Cube,i,j,k)
      Next k
    Next j
  Next i
EndProcedure
Thank you in advance
