Game Development Community

PlatformMoveComponent weird when player on

by BrunoW · in Torque X Platformer Kit · 12/30/2008 (5:00 am) · 1 replies

I try to build a simple new level with : 1 player, the ground, and a moving platform (up/down)

The player walks correctly on the ground, collisions are ok.

The platform moves also correctly until I jump on it. If the movement is up/down the player follows the platform (as we expect), but when it tries to move up again, there is a slight jump from the player landing again on the platform and the platform moves in the opposite direction it should, never coming back. Hum is it clear ? lol

Ok :

I entered (0;-40); (0;40) as PathNode with RelativeToPrevious checked.

So the platform moves on Y ----> Y - 40 ----> Y.

If I jump on it I get Y1(no matter Y) ----> Y - 40 ----> Y - 39 (small jump of the character) -----> Y - 40 ... - 50... -60 ... endless

Looks like collision or physic problem ? The player is too heavy ^^'

I tried to configure everything like the demo, except all the spawn things, I just want to check simple objects.


Any idea ? Thanks.

About the author


#1
12/30/2008 (7:34 am)
Well ... I fixed it, adding a SolidPlatformComponent. Not sure to have well understood why in the level_01 scene there is no SolidPlatformComponent ...

In level_01 :

DownUp42_Elevator (template) components :

T2DCollisionComponent
T2DPhysicsComponent
OneWayPlatformComponent
PlatformMoveComponent
TD2LinkPointComponent
WoodMaterialPlatformBehavior


in my project/scene :
T2DCollisionComponent
T2DPhysicsComponent
OneWayPlatformComponent
PlatformMoveComponent
SolidPlatformComponent<<<