Figuring out Tile Map Editor
by Philip Mansfield · in Torque Game Builder · 02/26/2005 (10:15 am) · 4 replies
I've been wrestling with the Tile Map Editor, and I can't seem to figure out how to get started.
I've got T2D installed in the default directory, with a clean set of scripts for everything.
The main problem I'm having is working out how to get my own images into the editor so I can start creating my own levels. I've tried putting JPG and PNG files into various image directories, but they don't show up. I always seem to get a list of various images, but I have no idea where they're picked up from.
If I load the spacescroller demo and look in the image library, I can see all of the images that relate to it.
If I copy all those files to T2D\client\images then I don't see anything.
Whilst typing this, something came to me! If I copy the datablocks.cs file from the demo then the images turn up. So is it case of having to define a datablock for every graphic that I want to use in the Tile Map Editor?
Sorry if it's a daft question, but I'm not a programmer. In fact, I suspect that just about everything I do will be done through script - monkeying about with C++ is a bit beyond me!
I've got T2D installed in the default directory, with a clean set of scripts for everything.
The main problem I'm having is working out how to get my own images into the editor so I can start creating my own levels. I've tried putting JPG and PNG files into various image directories, but they don't show up. I always seem to get a list of various images, but I have no idea where they're picked up from.
If I load the spacescroller demo and look in the image library, I can see all of the images that relate to it.
If I copy all those files to T2D\client\images then I don't see anything.
Whilst typing this, something came to me! If I copy the datablocks.cs file from the demo then the images turn up. So is it case of having to define a datablock for every graphic that I want to use in the Tile Map Editor?
Sorry if it's a daft question, but I'm not a programmer. In fact, I suspect that just about everything I do will be done through script - monkeying about with C++ is a bit beyond me!
#2
Having just looked at the doc again, it says:
02/26/2005 (10:29 am)
Yup, but not being a programmer, maybe my brain doesn't figure things out in the same way ;)Having just looked at the doc again, it says:
Quote:The Image-Library window is where you can select from any of the currently active imageMaps/animations.So I guess that does mean that they all need to be defined as image maps before they show up.
#3
Simply search for "fxImageMapDatablock2D".
If you've not got any experience programming, I'd definately recommend running through Joshs tutorial before you attempt to get your head around the most complicated part of T2D, the tile-stuff.
- Melv.
02/26/2005 (11:46 am)
@Philip: T2D doesn't work with bitmaps. T2D works with imageMaps/animations. The tilemap is no exception. When you define either an imageMap or animation, it is automatically available to T2D and the editors. You can find all the imageMap/animation definitions in "datablocks.cs". The root contains one called "demoDatablocks.cs" where all the common imageMaps are store.Simply search for "fxImageMapDatablock2D".
If you've not got any experience programming, I'd definately recommend running through Joshs tutorial before you attempt to get your head around the most complicated part of T2D, the tile-stuff.
- Melv.
Associate Joseph Euan