a array position question

Blitz3D Forums/Blitz3D Beginners Area/a array position question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Haggis I understand your first code example But I don't understand this

but increase the second value in box(m,0)

I understand this in your first code example using a cube

but this

0,0 - 0,1 - 0,2 - etc
1,0 - 1,1 - 1,2 - etc
2,0 - 2,1 - 2,2 - etc
etc.

I don't

and Also Would this be correct as a type


AppTitle "A test of mine" 

Graphics3D 800,600,32,2 

SetBuffer BackBuffer()  
 
cam1=CreateCamera() 
   
light=CreateLight() 

PositionEntity cam1,80,10,5  
 
RotateEntity light,0,0,90 

Type box
Field mx
Field my
End Type 

For mx = 0 To 9 
For my = 0 To 9 
	box(mx,my)=LoadMesh("ring1.3ds")
	PositionEntity box(mx,my),mx*10,0,my*10 
Next 
Next

While Not KeyHit(1) 
 
If KeyHit(88)=True Then enable=1-enable 

WireFrame enable  

	If KeyDown(16)=True Then TurnEntity Cam1,.9,0,.9 
	If KeyDown(18)=True Then TurnEntity Cam1,0,.9,.9 
	If KeyDown(30) TurnEntity Cam1,0,9,0  
    If KeyDown(32) TurnEntity Cam1,0,-9,0   
    If KeyDown(31) MoveEntity Cam1,0,0,-.09 
    If KeyDown(17) MoveEntity Cam1,0,0,.09 
 
UpdateWorld  
RenderWorld   
Text 280,0,"Turn Right with D Letter"  
Flip  
Wend 
End