Thanks Cliff
Quote: "The puzzler code creates allot of duplicate walls at the same positions."
I never noticed that so i changed this code to
if cells[a].walls[0] = 1 and objectraycast(0,cells[a].x*4, 1, cells[a].y*4-2.0,cells[a].x*4+1, 1, cells[a].y*4-2) =0// top
.
SetObjectPosition(cells[a].ObjID0, cells[a].x*4, 1, cells[a].y*4-2)
.
endif
if cells[a].walls[1] = 1 and objectraycast(0,cells[a].x*4+2, 1, cells[a].y*4+1.0,cells[a].x*4+2, 1, cells[a].y*4) =0// right
.
SetObjectPosition(cells[a].ObjID1, cells[a].x*4+2, 1, cells[a].y*4)
.
endif
if cells[a].walls[2] = 1 and objectraycast(0,cells[a].x*4, 1, cells[a].y*4+3.0,cells[a].x*4, 1, cells[a].y*4+2) =0// bottom
.
SetObjectPosition(cells[a].ObjID2, cells[a].x*4, 1, cells[a].y*4+2)
.
endif
if cells[a].walls[3] = 1 and objectraycast(0,cells[a].x*4-1.0, 1, cells[a].y*4,cells[a].x*4-2.0, 1, cells[a].y*4) =0// left
.
SetObjectPosition(cells[a].ObjID3, cells[a].x*4-2, 1, cells[a].y*4)
.
endif
Strangely enough i shouldve realised as i noticed a simliar issue with the posters and do a clean up routine
With that change it goes from 350 walls to 280 approx. and doesn't seem to be missing any. thanks again
fubar