Game Development Community

Collisions with Tilemaps

by Cameron Aycock · in Torque Game Builder · 09/24/2005 (1:22 pm) · 1 replies

I've got Collision setup between a sprite and tiles on my TileMap. However.. whenever I load the game, the layer of the tiles that I am using for my collision layer (basically the walls and limitations of where the player can go) is.. green. Like every tile that is checked to allow collision is surrounded by a bright green border.

I've gone back in and placed tiles with the collision option off and this border does not appear...

Is there a way to turn this border off?

#1
09/25/2005 (11:05 am)
Some where in your code you're calling this.

t2dSceneGraph.setDebugOn(BIT(5));

Find it and comment it out or you could stick this in to turn it off.

t2dSceneGraph.setDebugOff(BIT(5));

It's just part of the debug stuff showing you were the collision polys are. Nothing to worry about.

-Peter