Tip when you're making custom templates
by Stephen Howe · in TGB Platformer Kit · 04/10/2008 (6:24 am) · 2 replies
When you're making your custom datablock templates, make sure you use tab's between the manually typed in behavior fields:
NOT
Even thought they can look the same, the spaces prevent your data from being read.
datablock t2dSceneObjectDatablock(BobTemplate)
{
Class = "PlayerClass";
Size = "17.000 13.000";
Layer = "4";
CollisionPolyList = "-0.167 -0.820 0.167 -0.820 0.162 0.499 0.000 0.918 -0.167 0.512";
_Behavior0 = "ActorBehavior GroundAccel 16 GroundDecel 16 JumpForce 35 AllowGlide false";
_Behavior1 = "ControllerBehavior";
_Behavior2 = "ActorAnimationBehavior DatablockPrefix Bob ScaleVolume 0";
};NOT
datablock t2dSceneObjectDatablock(BobTemplate)
{
Class = "PlayerClass";
Size = "17.000 13.000";
Layer = "4";
CollisionPolyList = "-0.167 -0.820 0.167 -0.820 0.162 0.499 0.000 0.918 -0.167 0.512";
_Behavior0 = "ActorBehavior GroundAccel 16 GroundDecel 16 JumpForce 35 AllowGlide false";
_Behavior1 = "ControllerBehavior";
_Behavior2 = "ActorAnimationBehavior DatablockPrefix Bob ScaleVolume 0";
};Even thought they can look the same, the spaces prevent your data from being read.
#2
04/10/2008 (8:20 pm)
It fixed the problem of having the animation specified in the datablock not working, but not the fallback animation issue.
Associate Phillip O'Shea
Violent Tulip