Game Development Community

Question

by Shakey · in Torque Game Builder · 07/02/2009 (6:35 am) · 1 replies

I am really getting into TGB, source code and all. I have a couple questions. I am trying to make since of the source code. I have both books from Edward Maurina, and I was wondering if the Second Book would help me understand the source code a little better. I know that the book is based off the Torque Game Engine, but isn't TGB written on top of that.

My other question is, I have a bitmap background image, the image has everything I need for game play, but the image is flat, how would I go about making some parts of the background image image collidable. Would I have to make tiles out the part that I want to collide with.


Thanks in advance.

Shakey

#1
07/04/2009 (1:08 pm)
I can't help you with the books but for your background you have at least two ways you can do things-- If it's a large tile map you can set some of the tiles to collide, but I believe the collision shape must match the shape of each tile (square). You can also try using t2dSceneObjects. Since they don't render but can have collision bounds, you can shape them to cover irregular parts of the background (say like a boulder or vehicle).

Hope this helps.