Game Development Community

RC3: Tile settings reset after use of setStaticTile()

by Leroy Frederick · in Torque Game Builder · 06/17/2006 (1:50 pm) · 1 replies

I have to re-set collision active on tiles that had already had it active when i used the setStaticTile() function to change a tiles imagemap/frame

$TileLayer.setStaticTile(%TileX,%TileY,TileMapImageMap,1);
// After using the above i have to turn collision back on
//      	$TileLayer.setTileCollisionActive(%TileX,%TileY,true);

Is this meant to happen? Any1 else get the same result?

#1
06/18/2006 (3:01 pm)
It seems that all settings are reset (Collision, custom data) as i had to set both back to allow the collision call to work and know what type of tile is being hit until cleared.