thats so wrong?
HTML Code:
function getTilesArea(x, y, w, h) {
for (temp.i = temp.x; temp.i < temp.x + temp.w; temp.i++) {
for (temp.e = temp.y; temp.e < temp.y + temp.h; temp.e++) {
temp.tiles.add(level.tiles[temp.i, temp.e]);
}
}
showpoly(200, {
x, y,
x + w, y,
x + w, y + h,
x, y + h});
changeimgvis(200, 3);
return temp.tiles;
}
I think it works