In 2d I would load an image and draw it several times at array position in a 2d tilemap.
How can i make lots of the same mesh and have different xyz position for it?
Heres what I tried. Psuedo Code
===================
Is copymesh the wrong command to use?
Another thing, how do I load a mesh and not have it display until it's created?
Currently when I load a mesh with loadmesh it displays it on screen. I don't want it to do that. I just want to load it and then when I need it draw it. HideEntity hides it, I know.
Thinjk of it like 2d. When you load a 2d image it's not automatically there until it's drawn.
How can i make lots of the same mesh and have different xyz position for it?
Heres what I tried. Psuedo Code
===================
global mymesh = bbloadmesh(mymesh) Type Block field mesh field x field y function create() local b:block = new block b.x = Rand(0,800) b.y = Rand(0,500) b. mesh = bbCopyMesh(mymesh) end function method PosMesh() bbpositionentity(mesh , x , y, z) end method Create 10 Meshes while not bbkeyhti(blah for local b:block = eachin blahbooly b.posmesh next wend
Is copymesh the wrong command to use?
Another thing, how do I load a mesh and not have it display until it's created?
Currently when I load a mesh with loadmesh it displays it on screen. I don't want it to do that. I just want to load it and then when I need it draw it. HideEntity hides it, I know.
Thinjk of it like 2d. When you load a 2d image it's not automatically there until it's drawn.