|
Post by dwmitch on Jul 15, 2004 4:22:44 GMT -5
There was a comment on another board about how there should be a fill tool. Since I don't keep up with development issues I don't know if there's one in the works, but I have a quick way to fill in the grass tiles (or dirt, or concrete, depending on the setting) for a top down game. When I have time I'll see about writing up something for an isometric game.
//room create event for (w=0;w<room_width;w+=16) { for (l=0;l<room_height;l+=16) { tile_add(background1,102,102,16,16,w,l,1000000) } }
The settings will need to be changed. The way I find out the top and left of a tile is to open the background in the editor, zoom in as close as possible with the grid on, and place the pixel at the top left pixel of the tile I want.
Update: I'm currently working on a method of constraining the tiles to the current view while still giving a scrolling effect (as opposed to a static ground that occurs when tiles are only drawn in a view) for large maps, as having so many tiles on a world map (6400 x 4800, for example) slows it down considerably.
Would any of the six of you who showed interest in this thread be interested?
NOTE: This will only lay down the basic ground tile. For roads, rivers, cliffs, mountains, etc. you will have to place them manually on a slightly lower layer. No credit needed, as it's just a simple nested for loop with a function found in the documentation.
|
|
|
Post by megamushroom on Aug 15, 2004 6:50:13 GMT -5
yea, in large rooms it would make a considerable difference, especially on older pcs.
im interested
|
|
|
Post by dwmitch on Oct 20, 2004 21:47:44 GMT -5
I have decided to only use tiles for portions of the background that the player can either be in front of/above or behind/under. The rest will be done with backgrounds.
As development of the script has been on hold due to lack of time, and the only examples I make are ones that are relevant to my project (in other words, I won't make a Baulder's Gate battle system example for a person if the game I'm working on uses a Final Fantasy style system), I shall be unable to post an updated script.
|
|