Game Development Community

Problem with configuration datablocks

by Patrick Shaw · in Torque Game Builder · 02/17/2006 (4:07 am) · 5 replies

Hello,
I am having trouble with using the datablocks. Here's an example

new t2dSceneObjectDatablock(Player_Config)
{
worldLimitMode = CLAMP;
worldLimitMin = "-50 -40";
worldLimitMax = "50 40";
worldLimitCallback = true;
};


and

%player = new t2dAnimatedSprite()
{
config = Player_Config;
scenegraph = t2dscene;
}

When I run the the game, the player's world limit data is the generic defaults and does not match the config. Any help would be appreciated.

#1
02/22/2006 (1:30 am)
Hello Patrick
You probably put me in the right direction.
A week now that i'm trying to link behaviours with tiles (so i only have to "leveling" with the tile Editor) but nobody could answer to that question.

So i type t2dSceneObjectDatablock inside the search tool and found this :

tdn.garagegames.com/wiki/Torque_2D/GenreTutorials/PlatformerLevels

I can't tell you if what your trying to do only work with a SimGroup cause i don't know what it is.

This tutorial is "hide" inside the Implementing Winning and Losing Conditions.

The documentation is puzzle everywhere on GG and that a real mess with 56k modem to access to these data.
I'm practically nowhere with T2D ! It's really not easy.
#2
02/22/2006 (1:32 am)
It might be that this is due to this bug.
#3
02/22/2006 (2:00 am)
J'pige que dalle...

So it's a bug ok :)
#4
02/22/2006 (2:28 am)
Schaut so aus ;)
#5
02/22/2006 (3:19 am)
Thanks for the advice. I found the problem...I was using the beta 1.0. The config problem was fixed in beta 1.1.