Game Development Community

Cant stop falling the floor

by Ty Newton · in Torque X Platformer Kit · 02/01/2008 (11:12 pm) · 3 replies

I am begining with the platformer kit and having some very basic trouble. I've created a new project using the PlatformerStarterGame. I'm following the user guide basic level tutorial; however all the materials, animations and tilemaps in my scene are my own.

I am using a tilemap for my platform and adding the SolidPlatformComponent to it. I used DefaultPhysicsMaterial (I've also tried using DefaultCollisionMaterial) instead of NormalSurface for the CollisionMaterial.

I don't have any one-way platforms so I didn't worry about that section of the tutorial.

I create an actor from one of my animations, set its name to Player. I used the PlayerActorComponent instead of PlayerDragonComponent and set a couple of the animations.

When I run the level my player falls through the platform. I've tried placing my player above the platform so it will land on the platform and I've tried placing the player on the platform so it will just stay there. Neither work.


Any suggestions or references would be appreciated? I assume I'm missing something fundamental here.


Thanks.
T

#1
02/03/2008 (6:04 am)
Hi, three questions

Is any collision event on the actor run?
Does the character have the: _actor.Collision.CollidesWith = PlatformerData.PlatformObjectType in the register method?
Have you put a name in TXB>Scripting>Name ?
#2
02/04/2008 (6:39 pm)
Hi,
Thanks for the response. I solved the problem by starting again and managed to get it working without any real difficulties. I must have just made a simple mistake somewhere.


T
#3
02/07/2008 (5:24 pm)
I did a little more testing and it seems there is a minor bug in either TGB or the Platformer kit.

When I create a tilemap, add the appropriate platformcomponent and set the collision bounds then my player falls through it.

Only when I create a scene object on top of the tilemap, add the appropriate platformcomponent and set the collision bounds does my player interact with the platform. The tilemap is really only used to compose the graphics.

It seems that it is not possible to simply have a tilemap and use it as a platform on its own. There needs to be a scene object. It's either a bug or the documentation needs to be made more clear.

I hope this helps any other newb's out there.


T