Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tile_info.type returning 0?
#2
Hi,

I can't reproduce the issue. Using your modified tileset and writing the following queries:

Code:
TLN_TileInfo tile_info = {0};
TLN_GetLayerTile (LAYER_FOREGROUND, 10*16,12*16, &tile_info);
printf("tile_info.type=%d\n", tile_info.type);
TLN_GetLayerTile (LAYER_FOREGROUND, 11*16,12*16, &tile_info);
printf("tile_info.type=%d\n", tile_info.type);
TLN_GetLayerTile (LAYER_FOREGROUND, 12*16,12*16, &tile_info);
printf("tile_info.type=%d\n", tile_info.type);

Produces the expected output:

Code:
Tilengine v2.15.1 64-bit release built Apr 23 2023 19:27:20
tile_info.type=2
tile_info.type=1
tile_info.type=1


Messages In This Thread
tile_info.type returning 0? - by RootBeerKing - 08-16-2023, 04:01 PM
RE: tile_info.type returning 0? - by megamarc - 08-17-2023, 03:41 PM
RE: tile_info.type returning 0? - by RootBeerKing - 08-18-2023, 02:34 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)