Hey!
I just picked up Tree Party today and while I'm able to get my trees to appear in DarkGDK, I'm having no success getting Sparky's or the DarkGDK collision systems to detect the tree as an object.
In the case of Sparky's, I get "Object (1) does not exist" when the line of code to set up the tree arrives.
In the case of DarkGDK's collision, absolutely nothing happens. No error, no collisions, no collison boxes, no nothing.
I am 11,500 lines of code into a project and I have functional collision (Sparky's) with the ground and water in my world. I just wanted to create another collision group for trees and let players smack into them.
I'll try to post my code but it's in functions all over the place...bear with me:
Basically, I start Sparky's collision engine way up in my code and have this little function to load and setup collision on my tree:
void loadTrees()
{
GVTree1 = tpLoadtree("BasicTree3.tree");
//Trees
SC_SetupObject(GVTree1,TREE,0);
SC_SetObjectCollisionOn(GVTree1);
}
When it gets to
SC_SetupObject(GVTree1,TREE,0);
I get my error. I have declared the variable GVTree1 as in int prior.
According to the Tree Party documentation,
Quote: "
tpLoadtree(fname$) [The simplest way to load a tree is to use this command. It loads and creates a pre made tree from the MyTrees directory.]
This command you will use to load any trees you made from the editor, or to load trees included with the distribution. The tree must exist in the 'tpMedia/Mytrees' folder. This function will return a numerical ID number that you can use throughout your application to reference or make changes to the tree.
"
Is there any way to detect collisions with Tree Party trees or are they purely for decoration?