Game Development Community

CELL" mode bugs for tiled images to create a tilemap

by Max Wilson · in Torque X 2D · 01/03/2008 (7:36 am) · 0 replies

Hallo everybody,

Let's say I import a tiled image (to create a tilemap), when I subdivide it with "CELL" mode, a line of every tile appears in the next throught the sequence (in general tiling doesn't work properly). To create my tiled image I have followed this roadmap:

1) Tiles are squared.
2) The size of every tile is a power of two (16x16 I tried).
3) Number of tiles along X and Y are a power of two too (8x4 I tried).
4) I saved the PNG image with GIMP, as I explain in my post at http://www.garagegames.com/mg/forums/result.thread.php?qt=62168 (this method fixes the "halo" bugs around PNG images with an alpha mask without using SuperPNG).

My question is: if tiling doesn't work properly, is a bug of the Torque X Engine, of the Torque X Builder, or the PNG tiled image is wrong? If tiling doesn't work, the only way to create a tilemap is to import every tile as single material, but this is expensive. Someone can help me? Thank you in advance.

About the author

Recent Threads