Game Development Community

tile map not working?

by Lets do this · in Torque Game Builder · 07/01/2012 (1:17 am) · 7 replies

Hello, So i follow the shooter tutorial but when i came to the tile map it didn't work.
scene resolution: 1024x768

tile map:
tile count: 10
tile Size X/Y: 128 (The images are 128x128)

when i do this, the scene doesn't contain even 1 "box"
so I reduce the tile map to fit the window.
fine, now you cant see the blue lines outside the window, but you cant see them inside the scene aswell cause 1 box are to large.
in order to get smaller boxes i have to use like "tile size x/y: 10" just some random number.
and when i click "size object to layer" it get to the previous state where you could see the blue lines outside the scene
when i watch tutorial they dont have the same outcome as me :(

About the author

Recent Threads


#1
07/01/2012 (9:18 am)
I thought the Torque documentation tutorials on the website or what comes with Torque doesn't deal with tilemaps in the shooter. Could you provide a link or something to where you are getting this tutorial so I can take a look at it?
#2
07/01/2012 (11:07 am)
Ohh, sorry.
I meant the ninja platform, no idé why I wrote shooter :P
link : http://docs.garagegames.com/tgb/official/index.html?content/documentation/Game%20Tutorials/Shooter/1%20-%20Getting%20Started.html -> game tutorials -> ninja platform.
I can make a short youtube video if it would help :)
#3
07/01/2012 (11:36 am)
What you could do is keep the scene resolution 1024x768 and make the Camera width and height to 1024x768. Then your 128 unit tile boxes won't seem so big in comparison and they will show up exactly 128x128 pixels. I didn't think to do this in my game until now but any image you put in the game is the exact size in the game and outside in it's own image file and you don't have to worry about re-sizing issues. I might do this in my future games.

BTW, Just because an image is 128x128 doesn't mean you have to make it that big. Make it 10x10 Torque size units and zoom the camera in can make it look just as big as the camera zoomed out and it's size is 128x128 torque units.

If this post doesn't help then yeah go ahead and make a youtube video. :S
#4
07/01/2012 (12:17 pm)
How do you change the camera width then?
They didn't mention anything like that in the tutorial =/
Here are the video on how i thought i would do it after reading the tutorial.

http://www.youtube.com/watch?v=K9Y0uZPcjUI

I googled how to change camera width and they said that i had to change something in a .xml file which i dont have =( link: http://www.garagegames.com/community/forums/viewthread/111635
#5
07/01/2012 (1:55 pm)
1. Click on empty space in Torque so no object is selected.
2. On the right there should be a couple tabs, click on the one called Camera
3. There should be a couple edit boxes that you can edit. Change the Camera Width and Height to 1024 and 768 and Design Resolution x/y to 1024 and 768.
4. Don't touch the x and y boxes. And you probably don't want to touch the Design Resolution in the Preferences ever since you can get to it the other way.

Hopefully that should fix it. :P
#6
07/01/2012 (2:25 pm)
Thank you so much!
followed those steps and now it work properly! :)
#7
07/01/2012 (2:44 pm)
Oh good. Well, good luck!