Here's the code you helped me with I added Some more rings to form a square formation
I'm been trying a for a while now to align them like
* * * * *
* * * * *
* * * * *
* * * * *
In the pattern above. any suggestions?
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 Dim box(9,9) For m = 1 To 9 box(m,0)=LoadMesh("ring1.3ds") box(m,1)=LoadMesh("ring2.3ds") box(m,2)=LoadMesh("ring1.3ds") box(m,3)=LoadMesh("ring2.3ds") box(m,4)=LoadMesh("ring1.3ds") box(m,5)=LoadMesh("ring2.3ds") box(m,6)=LoadMesh("ring1.3ds") box(m,7)=LoadMesh("ring2.3ds") box(m,8)=LoadMesh("ring1.3ds") box(m,9)=LoadMesh("ring2.3ds") PositionEntity box(m,0),Rand(5,5),0,Rand(-5,-5) PositionEntity box(m,1),Rand(10,10),0,Rand(-10,-10) PositionEntity box(m,2),Rand(15,15),0,Rand(-15,-15) PositionEntity box(m,3),Rand(20,20),0,Rand(-20,-20) PositionEntity box(m,4),Rand(25,25),0,Rand(-25,-25) PositionEntity box(m,5),Rand(30,30),0,Rand(-30,-30) PositionEntity box(m,6),Rand(35,35),0,Rand(-35,-35) PositionEntity box(m,7),Rand(40,40),0,Rand(-40,-40) PositionEntity box(m,8),Rand(45,45),0,Rand(-45,-45) PositionEntity box(m,9),Rand(50,50),0,Rand(-50,-50) 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
I'm been trying a for a while now to align them like
* * * * *
* * * * *
* * * * *
* * * * *
In the pattern above. any suggestions?