Game Development Community

Tilesize vs camera size

by Martin Kaspar · in Torque Game Builder · 10/08/2008 (2:37 am) · 3 replies

Hello,
I don't understand size units in TGB. I use tileset for make my level and I have problem because of scaling tiles. When scrolling it looks sometimes bad. I would like to use original size of tiles (32x32px) but it wont work. I looked on camera settings, there is resolution 1024x768 which is ok but width and height 100x75 and I dont understand this. Is it possible to change it also 1024x768 and will work then pixel units?

#1
10/08/2008 (4:34 pm)
It's entirely possible. That's what I do but I have heard of that causing some performance issues because using a resolution of 100x75 means that there are only 11 (1032/100) buckets across which the engine uses to figure out collisions. If you use 1032x768 then there are 1032 buckets across. This is how I understood it but I still use it that way and haven't noticed a change in performance.
#2
10/08/2008 (11:18 pm)
OK thanks I will try it change and we will find out. I dont see any other solution to use tiles in default size without resizing.
#3
10/09/2008 (10:36 pm)
You should go with the defaults for that resolution. Also note that it controls aspect, so tweak it for widescreen resolutions. The bottom-line from a recent thread on the subject was that you shouldn't deviate much from those default numbers.