|
06-01-2012
|
8
|
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
That makes more sense than what I was doing.
PHP Code:
function onRender() { temp.tw = -1; temp.th = 0;
for (temp.i = 0; i < 64 * 64; temp.i++) { if (temp.tw > 64) { temp.tw = 0; temp.th++; } else { temp.tw++; }
with(findimg(200 + i)) { polygon = { temp.tw, temp.th, temp.tw + 1, temp.th, temp.tw + 1, temp.th + 1, temp.tw, temp.th + 1 };
x = temp.tw; y = temp.th; image = gettileset();
//Trimming partx = TilesToImage(tiles[temp.tw, temp.th])[0]; party = TilesToImage(tiles[temp.tw, temp.th])[1]; partw = 16; parth = 16;
//Effects layer = 0; spin = 1; alpha = 1; } } }
Thanks for the help Dusty, I'll play around with this for a while and see what I can do. I take it this doesn't produce anything near the lag my code produces? (Also, I've been using your wonderful TilesToImage function. Thank you)
|
|
|
|