[SOLVED] LibGDX Tilemap Null Tiles

For reference, I am following this source:

Hi there!

I am having a bit of an issue at the moment. If you take a look at that source link, you will see a method titled “getTiles” with several parameters. I am doing this exact same thing for a collision practice thing. The issue I am having is that the cells are returning null, so the tiles are never actually added or I guess “registered” in this case. The (if cell != null) never gets to run.

I am using the Tiled program for the tilemap and have textures on a layer, so I’m not sure what the issue is. Do I need to tick some setting for it to no longer return null?

Thanks!

  • A