Game Development Community

Questions about the tile editor

by Gregory Stewart · in Torque Game Builder · 03/31/2005 (6:22 pm) · 2 replies

Hello,

Well, I have a couple of questions concerning the tile editor. Perhaps somebody has figured this out so I can save myself a little time.

(1) Ok, so, is there something I'm not understanding about actually getting your images into the tile editor? From my understanding, all images in T2D/client/images/ should appear when I click on the image library. Am I correct in this assumption, or do I need to modify some script to specify which files will appear in the image library? I can edit the files that exist in that directory and my changes will appear, however, I simply drop new files in that folder and it doesn't seem to work. Do the files have to be a certain size?

(2) Are the tile sizes in pixels or some other unit of measure? Because, as far as I can tell, zoom X 1 is not 1:1 ratio with the pixel size. For example, I create a map with tiles of 8x8 pixels (I'm assuming they're pixels), and zoom to x1 (the default zoom), but the tiles are actually closer to 32x32 pixels! Are the tile sizes not pixels, or is the default zoom just not in proportion to the tile sizes? If the latter is the case, it seems a little strange to me.. IMHO the zoom x1 should be the actual pixel size...

I'm sure I'll have many more questions in the future! Thanks! :-D

Greg

#1
03/31/2005 (7:02 pm)
1. The tile editor (and, really, T2D) needs datablock definitions (fxImageMapDatablock2D) in order to recognize and load up the images.

2. The tile editor uses the same coordinate and virtual pixel system as the main T2D app. ie, it defaults to 100 x 75 virtual screen units. The size of the tiles defaults to 4x4 (which at 800x600 would come to 32x32 pixels), and can be resized.
#2
03/31/2005 (7:43 pm)
[begin shamless plug]

Could always use this tool to put all of your images into datablocks so that you can use them and also the tile editor can use them too.
www.garagegames.com/mg/forums/result.thread.php?qt=27697

[/end shamless plug]