# Isometric Error: decrement iteration removes tiles [closed]

I am new to isometric and game programming in general.

Just cannot figure out how to iterate the grid from behind. I want to do it so that the tiles overlap properly.

My grid starts at [0][0] which translates into the tile closest to the left edge.

This is how my a smaller version of my map grid looks like:

var map = [
[1, 1, 1],
[1, 0, 0],
[1, 1, 1]
];


I have no trouble displaying it when I loop forward through the arrays:

But when I try to iterate backwards through the Y array, it starts bugging, and does not display all tiles and have no clue why:

I hope the images are large enough, else please "Zoom in" or open them in a new tab.

Cheers

## closed as too localized by MichaelHouse♦, bummzack, Trevor Powell, Josh♦, AnkoApr 8 '13 at 8:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

for (var y=map.length-1; y>=0; y--) {

for (var y=map.length; y-->0;) {