tiles from different tilesets?

Started by Poe, February 18, 2012, 03:03:29 pm

Previous topic - Next topic

Poe

i suppose it comes down to this really: is there a way to modify a piece of a map ingame, to something outside of the tileset?

i know how to put tiles from other tilesets into the chosen tileset and reference to that. i'm talking about defining one 32x32-pixel rectangle from any existing graphical file, and putting that into a specific xy position on the map (without using events, at the scope i'm talking they would drop the frame rate to 1/3rd).

i'm using loads of "construction" objects that change their form (get bigger several times, fall apart again) each one a different tile, it's pretty messy on one file so i'd like to group them into seperate tilesets according to type. but i'm clueless how this could be done since from what i can tell game_map uses only "pointer" numbers to the tileset to arrange the map.


if it's impossible, what's the reality with big tilesets? the help file says loading times will increase, but by how much and how big can it get before this starts happening? is it only the longer loading time or will there be ingame lag as well?

ForeverZer0

Large tilesets will only cause a very small amount of lag one time when they are first loaded, and it is usually in between map changes. After that the image is cached and it shouldn't effect anything. Everyone makes a big deal about large tilesets, but the loss in performance is so minimal it makes no difference really.

Large maps on the other hand are a different thing. Since the maps are made by performing a whole bunch of blits, not to mention creating all the events, etc., it will cause lag every time the player transfers to the new map. Go ahead and make a 500x500 map and try it out. Even empty it will lag, since there are so many iterations over each tile of each level to check if a tile needs drawn there.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.