Beta 3 bug: loading tile maps
by Patrick Shaw · in Torque Game Builder · 05/11/2006 (4:54 am) · 0 replies
Hi,
In beta 2, I used the following code to load my tilemaps:
$currentTileMap = new t2dTileMap(Level01_tilemap)
{
scenegraph = SG_Level01;
tileMapFile = $path_tilemaps @ "level01_map.t2d";
};
In beta 3, the tile map object is created without loading the file. However, "tilemapfile" field is a "dynamic field" on the object. Loading the tilemap file after creating the object does work:
$currentTileMap = new t2dTileMap(Level01_tilemap)
{
scenegraph = SG_Level01;
// tileMapFile = $path_tilemaps @ "level01_map.t2d";
};
$currentTileMap.loadTileMap($path_tilemaps @ "level01_map.t2d");
In beta 2, I used the following code to load my tilemaps:
$currentTileMap = new t2dTileMap(Level01_tilemap)
{
scenegraph = SG_Level01;
tileMapFile = $path_tilemaps @ "level01_map.t2d";
};
In beta 3, the tile map object is created without loading the file. However, "tilemapfile" field is a "dynamic field" on the object. Loading the tilemap file after creating the object does work:
$currentTileMap = new t2dTileMap(Level01_tilemap)
{
scenegraph = SG_Level01;
// tileMapFile = $path_tilemaps @ "level01_map.t2d";
};
$currentTileMap.loadTileMap($path_tilemaps @ "level01_map.t2d");
About the author