Game Development Community

Collision Layers

by Zeinad · in Torque Game Builder · 04/01/2009 (9:58 am) · 2 replies

I was playing around with collision layers today and I've been having some trouble getting them to work. As a little background, the game is a platformer and what I am trying to accomplish is letting the player jump through the platforms from the bottom, but land on the top of them. I found the functions for changing what collision layers objects are on, however even when I change the layers in the editor it doesn't work. For example, if I put the player on layer 1 and the platform only on layer 2 the player still collides with the platform.

Any tips on how to make this work or a different way to achieve this effect?

#1
04/01/2009 (9:01 pm)
Have you tried de-selecting, according to your example, layer 2 from the collision tab?

There is a big list of layer numbers inside the collision tab of the editor, you can enable/disable collisions to certain layers like that.
#2
04/02/2009 (12:54 pm)
Yes, thats where I was messing with it. I guess I was a little unclear, in my example the player was on layer 1 an no other layers, my platform was on layer 2 and no other layers.