hi, i've used instance object before but that was a while ago and now i can't seem to get it work.
heres when i'm getting when i try to run, the object below is the original object and the rest a instances
and the code,
function initialize_Chunk_System()
`world( <block X> , <block Y> )
dim World(Chunk_size*Number_of_chunks,Chunk_size*Number_of_chunks) as world_type
`---------------------
dim Chunk(Max_number_of_loaded_chunks) as Chunk_type
`---------------------
`set up perent blocks
`---------------------------------------------
make object plain 60000,Block_size,Block_size `surface rock
color object 60000,RGB(192,192,192)
position object 60000, 0,-50,0
xrotate object 60000,-90
endfunction
function Load_Chunk(Chunk_ID as integer,ChunkX as integer,ChunkY as integer)
object_start as cords
object_start.X = (ChunkX * Chunk_size) * Block_size
object_start.Y = (ChunkY * Chunk_size) * Block_size
ID_start as integer = Chunk_ID * 200
for Y_loop = 0 to Chunk_size - 1
for X_loop = 0 to Chunk_size - 1
block_idA as integer
block_idA = ID_start + (Y_loop * Chunk_size)+ X_loop
block_idB as integer
block_idA = block_idA + 100
instance object block_idA,60000
position object block_idA,object_start.X + ( X_loop*block_size),0,object_start.Y + ( Y_loop*block_size)
next X_loop
next Y_loop
endfunction
clone object seems to work fine but it puts more of a strain on the system so i'm hoping i just done something wrong to break instance object.