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.
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.
About the author
Torque Owner Rivage
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.