Hi,
thanks, in that case i shall post a bit of code...
What I am trying to do place an object next to a body of objects providing the 32x32 sections on either side of the object are free from other objects...
I think this is simple enough but am getting my approach wrong...
LOADSPRITE "castle1.png", 11
result% = 0
FOR f=1 TO 512 STEP 16
FOR n = 1 TO 800 STEP 16
//FOREACH test IN waters[]
FOR i = 0 TO BOUNDS(waters[],0)-1
// IF BOXCOLL (test.wx, test.wy,test.width,32, n,f,32,32)
IF BOXCOLL (waters[i].wx, waters[i].wy,waters[i].width,32, n,f,32,32)
// TEST SIDE SECTIONS
FOREACH leftside IN waters[]
IF BOXCOLL (leftside.wx, leftside.wy,leftside.width,32, n-32,f-16,32,32)=FALSE AND BOXCOLL (leftside.wx, leftside.wy,leftside.width,32, n+64,f-16,32,32)=FALSE
result = 1
ELSE
result = 0
ENDIF
NEXT
IF result = 1
DRAWSPRITE 11, n, f-16
GOTO scr1
ENDIF
ENDIF
NEXT
NEXT
NEXT