About collision for jump action.
by Honam Kim · in Torque Developer Network · 09/01/2011 (8:05 pm) · 0 replies
Hi, all developers.
We are developing a simple jump action game and have reached a trouble of collision.
The character must be able to jump on the object without any block or lack.
Our coder has made some scripting, but it is still has trouble.
He made the collision is off when character is under the object.
And the collision is on when the character is above the object.
However, the character still bump on the object and it is caught on collision when he jump.
So we have got an idea that collision is off when the Y coordinate of the character's feet is lower than the object.
But we do not know how to make it.
If someone had a same experience, please help us !!
Thanks :)
We are developing a simple jump action game and have reached a trouble of collision.
The character must be able to jump on the object without any block or lack.
Our coder has made some scripting, but it is still has trouble.
He made the collision is off when character is under the object.
And the collision is on when the character is above the object.
However, the character still bump on the object and it is caught on collision when he jump.
So we have got an idea that collision is off when the Y coordinate of the character's feet is lower than the object.
But we do not know how to make it.
If someone had a same experience, please help us !!
Thanks :)