Game Development Community

How to make my player have movement in all 3 axis?

by JackeyYu · in Torque Game Builder · 10/21/2009 (6:04 am) · 2 replies

I want to make a 2.5D action game. my player should move left and right, up and down, and jump.
But I don't know how to use TGB's collision system and physics system to make it.Because it only works in x and y axis.

I'm Sorry for my poor english..

#1
10/21/2009 (3:03 pm)
as you don't have collision against the 3rd dimension, you could just as well disable collision during jump and scale the object larger / smaller again to make it look like jumping.

alternatively you can naturally also use a second layer above with the collision data and tranfer the player into that layer for the in jump collision logic
#2
10/22/2009 (5:24 am)
Thank you!

That means, every time before casting collisions, I should transfer my object to the layer of my only one 2d-ground, and after casting collisions, then transfer the object back to its own layer?

Is there any available behaviors I can use for pseudo-3d's collisions?