(0)Unable to find function playThread" Can anyone help me please"> Unable to find function playThread | General Discussion | Forums | Community | GarageGames.com

Game Development Community

Unable to find function playThread

by MARIA SALAZAR · in General Discussion · 06/19/2008 (12:28 pm) · 3 replies

How can I play my animation by input that command in the console. Everytime I put myobj.playThread(0,"root");
It said " (0)Unable to find function playThread" Can anyone help me please

#1
06/20/2008 (5:04 am)
Are you using "myobj" or "%myobj" or "$myobj"? Because the first one is a syntax error.
#2
06/20/2008 (7:41 am)
I used %obj and also myobjname. I tried them both and none of them work

Thank you so much. this is my code

datablock TSShapeConstructor(myball)
{
baseShape = "~/data/shapes/superbomb//myball.dts";
sequence0 = "~/data/shapes/superbomb//myball_root.dsq root";
};

datablock StaticShapeData(myball)
{
category = "myBall";
shapeFile = "~/data/shapes/superbomb/myball.dts";
};

function myball::onAdd(%this,%obj){
%obj.playThread(0,"root");
}

function StaticShapeData::create(%block)
{
%obj = new StaticShape()
{
dataBlock = %block;
};
return(%obj);
}
#3
03/27/2009 (6:55 pm)
Maria,

Did you ever get this to work? If so, could you post the working scripts, please?

Thanks!