putting tiles on board

Blitz3D Forums/Blitz3D Programming/putting tiles on board

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.

Actually I tried to do it with types. Didn't work right.
The locations on the board as well as the screen are -45 to 45 X and -45 to 45 Z. Stepping by 10.

SO I did this:
empty=LoadMesh("square.b3d")
PositionEntity empty,-45,.15,-45
EntityPickMode empty,2
HideEntity empty

Type empty
	Field entity
	Field ex
	Field ey
	Field ez
	Field Color
End Type

For space = 1 To 100
	For locx = -45 To 45 Step 10
		For locz = -45 To 45 Step 10
			n.empty = New empty
			n\entity = CopyEntity(empty)
			n\ex = locx
			n\ey = .15
			n\ez = locz
		Next
	Next
Next
	
But for some reason that won't display all the squares... I think they overlap. Very slow.

I put the empty squares with a function I call outside of the main program loop like this:
Function put_empty()

For n.empty = Each empty
		EntityType n\entity,2
		EntityPickMode n\entity,2
		PositionEntity n\entity,n\ex,n\ey,n\ez
Next

End Function
So what am I doing wrong???
-RZ