Game Development Community

Considering TGB

by Wolfgang Kurz · in Torque Game Builder · 04/17/2007 (12:54 pm) · 1 replies

Hello evryone,

I am considering to buy TGB but would like to know if its possible out of the box to build big tilemaps with the editor that are only partially loaded into the client at one time?


To ilustrate what i mean :

The server would have the mapinformation for a map like this in memorry:

xxxxfxxxx
xaxxdxxxx
xxxbxxxxx
xxxxxxxxx

the client would be able to display 2 x 2 tiles
like this:

xx
xa

when the player moves one to the south the client would kick out the top row and load a new on at the bottom like this:

xa
xx

As a dayjob i am working on a game that handles things like ths and before i buy tgb to use for my spare time i would love to know if this is possible with tgb or if i have to look for something else or do it myself

thx for any hints ou can give me

#1
04/22/2007 (11:09 pm)
Yes. We where originally doing our game this way. We just made sure the camera was to the point where each tile on the screen had its pixels basically 1 to 1. Then we moved the increments of the tile. so if your using 64x64 tiles then the player moves up 64 pixels onto the next tile. If you didnt want that scrolling, you could just jump the player. However collision would need to be handled by reading each tile, vs using the awesome 'draw collision polygon on tile' feature. What we did is just move the player from 1 to the next smoothly so it would still read that collision if it hit it, and then we sent the player back to his original state.

However when we figured out that the resolution was so nice and it handled the scrolling so well...PLUS the collision data could be set other than 128x128 box (we use large tiles) we just said "heck with it, lets let the player roam free!" and we cut out our tile to tile movement all together, rewrote some of our game rules and we are so much happier for it.

but tile to tile can be done.