layer_tilemap_get_id() does not work after creating a tilemap
creating a tilemap in code like so:
layer_id = layer_create(0,"name");
tilemap_id = layer_tilemap_create(layer_id,0,0,0,1,1);
then trying to use:
tilemap_id = layer_tilemap_get_id(layer_id);
will return -1 (even if there is only one map)
It's such a small issue, but it did cost me a lot of time figuring out that this was the issue in my code, easy work around was to keep a ds map with the tilemap ids as they are created and ref them that way.
Please sign in to leave a comment.