Vertical Moving Platforms
by Abhinav Chokhavatia · in Torque Game Builder · 06/05/2008 (5:49 am) · 4 replies
Hey guys!
This problem has been eating my head for the past week now and I have almost given up trying. Thought I'd give it one last shot at the TGB forums.
I was making a vertically moving platform for my game character to move on in the level. Though I have been able to make the platform move the way I want, my character doesn't while on the platform. I posted this same doubt in another forum but did not get a response so I am posting it again. My character can move left and right on the platform, but he just cannot jump. I am sure there is a problem/clash of the physics logic I have implemented somewhere.
Can anyone give me the basic outline on creating a moving platform for my game character? Please highlight points like gravity, friction, velocity of the character etc.
Thanks!
This problem has been eating my head for the past week now and I have almost given up trying. Thought I'd give it one last shot at the TGB forums.
I was making a vertically moving platform for my game character to move on in the level. Though I have been able to make the platform move the way I want, my character doesn't while on the platform. I posted this same doubt in another forum but did not get a response so I am posting it again. My character can move left and right on the platform, but he just cannot jump. I am sure there is a problem/clash of the physics logic I have implemented somewhere.
Can anyone give me the basic outline on creating a moving platform for my game character? Please highlight points like gravity, friction, velocity of the character etc.
Thanks!
About the author
#2
06/06/2008 (6:11 pm)
The Platformer Starter Kit supports moving platforms (both horizontal and vertical) without any issues.
#3
06/07/2008 (10:51 am)
But in the PSK, it hasnt been explained very properly. I mean there are so many things going on simultaneously in those CS files that I could not figure out what to look for. Could you point it out for me?
#4
That is the basic idea.
06/07/2008 (2:37 pm)
Mmmm, because we don't have a private area, I won't go into much detail about how I do it, but I basically have this idea of "inherited velocity". Basically, anything that might make the player or other actors move other than regular walk/run/jump movements is lumped into inherited velocity. So when an actor lands on a moving platform, it has the platform's linear velocity added to the player's inherited velocity.That is the basic idea.
Torque Owner Benjamin L. Grauer