Platformer Tilemap Clamp issues
by Sam M · in Torque Game Builder · 06/14/2006 (3:22 pm) · 6 replies
Hi, I wrote up a quick platformer game the other day using a tilemap for the level. However whenever the player lands on (or collides with) the platform the players speed (moving left or right) is significantly decreased. I figured this probably has something to do with the CLAMP function slowing down the players movement. However when I use the player's world limits as the platform and on CLAMP there's no slowing down.
Does this make sense and if so does anyone have any ideas?
(Edit)
I'm using TGB RC2 btw.
Does this make sense and if so does anyone have any ideas?
(Edit)
I'm using TGB RC2 btw.
#2
06/14/2006 (6:22 pm)
Maybe the friction setting needs to be lowered.
#3
06/14/2006 (6:24 pm)
Tried that, didn't change anything.
#4
06/15/2006 (2:53 am)
You have to turn off gravity as long as the player has got ground under his feet. There are quite a few threads on this here in the forums.
#5
06/15/2006 (7:52 am)
So change constantforceY to 0 when on the platform?
#6
Also this thread might help you a bit:
http://www.garagegames.com/mg/forums/result.thread.php?qt=45114
06/15/2006 (9:19 am)
Yes. Take a look at the platformer tutorial on TDN if you have not already.Also this thread might help you a bit:
http://www.garagegames.com/mg/forums/result.thread.php?qt=45114
Torque Owner Sam M