Game Development Community

Create And Snap To Grid Commands?

by Josh Steffen · in Torque Game Builder · 08/12/2011 (6:51 pm) · 1 replies

I am planning on making a block map generator I know the get random command and I know there is a create command but I forgot it. But is there any kind of snap to grid command also is there anything commands or stuff I should know before making a map generator.

#1
08/13/2011 (9:31 am)
@Josh I think you should know that terraria does not keep positions of each block in the world. Instead it makes use of good old tile map idea, letting it handle block positioning.
You should be able to find good explanation on the web. Basically, tile map is an empty world divided into cells, your map generator just have to specify which kind of block each cell of this map contains.

Most important, TGB supports tile maps, so you don't have to create and manage thousands of sprites in your scripts. That would be too complicated and probably really really slow.