Game Development Community

Shape animation in TGE 1.4

by Apparatus · in General Discussion · 12/08/2005 (2:26 am) · 0 replies

I missed something somewhere cause my shape animations won;t play in game whatsover. They are exported properly (checked in Show Tool Pro) but ingame they are as static as dead. I know in version 1.3 I played with the shape animations and worked fine. Here is what I use now (boatswing.cs, does all the shapes animated - like health and weapon - have to be placed in ~./data/shapes/?)

datablock StaticShapeData(boatswing)
{   catagory = "OrkHarbor";
   shapeFile = "./data/EnvironmentAnimations/Boat100/boatswing.dts";
};
function boatswing::onAdd(%this,%obj)
{
      %obj.playThread(0,"swing");
}   
function StaticShapeData::create(%block)
{
   %obj = new StaticShape()
   {
      dataBlock = %block;
   };
   return(%obj);
}

Forgive me if the answer is posted somewhere else already. Ive tried a feew but in 1.4 does not seem to work. Any help will be highly appreciated.

Cheers,