Getting started with tile editort question...
by Jesse Hall · in Torque Game Builder · 04/08/2005 (3:20 pm) · 7 replies
Im modifiying the basic tutorial and would like to add a ground and then collisions for ground.
my first question is how to get the tiles i want to use to come up in the tile editor image library.
i setup datablocks in my script based off the ones used in the tutorial and i have moved the images into ~/client/images
any help to get started is appreciated....
regards
Jesse
my first question is how to get the tiles i want to use to come up in the tile editor image library.
i setup datablocks in my script based off the ones used in the tutorial and i have moved the images into ~/client/images
any help to get started is appreciated....
regards
Jesse
About the author
#2
datablock fxImageMapDatablock2D(skyplainBluemt)
{
mode = full;
textureName = "~/client/images/sky_plainBlue_mt";
};
is the code im using to load a single ground layer. the images are simple 256x256 png files that i created in paint shop pro.
thanks for the help.. =)
04/08/2005 (3:34 pm)
I didnt find any red text however there is some gray text where the tile map used in the tutorial is loading. The error refers to an image map that its failing to load wich is the mountains and not part of the tutorial.datablock fxImageMapDatablock2D(skyplainBluemt)
{
mode = full;
textureName = "~/client/images/sky_plainBlue_mt";
};
is the code im using to load a single ground layer. the images are simple 256x256 png files that i created in paint shop pro.
thanks for the help.. =)
#4
04/08/2005 (3:46 pm)
This isn't supposed to make a difference, but try renaming your file to all lowercase and see if that helps. I had a wierd problem with a file not showing up and I think that's what fixed it. But I may just be crazy...
#5
my instincts are telling me it has to do with the scoller map from the demo not loading properly though.
it loads a few of the datablocks but then stops at the last two ive added.
ill keep working away and start with a fresh script instead of modding the tutorial and see how that goes.
04/08/2005 (3:57 pm)
Yeah.. its not showing up. my instincts are telling me it has to do with the scoller map from the demo not loading properly though.
it loads a few of the datablocks but then stops at the last two ive added.
ill keep working away and start with a fresh script instead of modding the tutorial and see how that goes.
#6
04/08/2005 (4:05 pm)
Good idea... where are you putting the datablock calls ?
#7
My datablock calls are in a setup t2d scene function near the beginging in the "put your code here" area as described in the basic tutorial. I will be looking at the datablock tool soon since id like to call a seperate script for all my images. From what ive seen its the most efficient way. Please correct me if im wrong.
Thanks for the help!
- Jesse
04/09/2005 (8:42 am)
After i removed all the code associated with loading the scroller tilemap and went back in my images were there. My datablock calls are in a setup t2d scene function near the beginging in the "put your code here" area as described in the basic tutorial. I will be looking at the datablock tool soon since id like to call a seperate script for all my images. From what ive seen its the most efficient way. Please correct me if im wrong.
Thanks for the help!
- Jesse
Torque 3D Owner Matthew Langley
Torque
if you set them up as imagemap datablocks they should show up in the tileeditor... also once you place them in the editor, ctrl + left click the box to activate collision