array = Image.load_tiles($screen, "data#{dir}/#{name}.png", width, height, tileable)
if palette
pal=Img["Palettes/#{palette}"] ##loads image for palette
array.each{|img|
pal.width.times{|x| img.clear(:dest_select=>pal.get_pixel(x,0),:color=>pal.get_pixel(x,1),:tolerance=>0.001)}
}
end
@@tiles[[name.downcase,size,palette]]=array
img.refresh_cache
after you've cleared it. Just a guess, but sometimes that forces updates which otherwise might not get synced properly. Beyond that, I haven't a clue.
image.load_tiles
), it vanishes some of tiles.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill