[A83] Re: Tilemap


[Prev][Next][Index][Thread]

[A83] Re: Tilemap




Another way you could do an animated tile map, would be this:

[list of tiles that are animated, es: 1,4(animate the tiles starting at 1, to 
4), etc...)
loop through the x's
    loop through the y's
        loop through the list( probably save as hl, inc 2x, what ever floats 
your boat)
            if (map[x][y] > list) && (map[x][y] < list2)
                map[x][y]++;
                DrawTile(x,y);
        end
    end
end
there, hope that makes sence
basically map[x][y] is the tile to be updated, and it only updates the ones 
requiring anmiation, so it would save some speed by not having to draw it, 
but anyways, Thats my 2 sence. bye!