ya! but i can't read! the problem is: can't understand where start and finish the functions, why have?, for what?

look:
my map haves 16*16 blocks, total of 256 blocks
abened's code, is so confused, i don't know where him check the "tile"...
i don't know where him add +1 to see the next tile.
that things....

i hope u understand....

a easy code:
Code:
var
  x,y:integer;
begin
  for x:=0 to maxtilex do begin
    for y:=0 to maxtiley do begin
      if tile[x,y].wall = true then
        //do something
      end
      else
      if tile[x,y].wall = true then
      end;
    end;
  end;
end;
and...

Brothers! DelphiX is hard!
GLScene is easy and, i think is more powerfull! =D
it's just a comment...

a hug!