S
Shadowblitz16
Guest
does anybody know how to get a tilesets size? I need it for getting the length of the tileset
It seems the problem is you are not able to get the width/height of a tileset, and when you try to refer to the tile sprite using sprite functions, it returns -1. So I've found if you make a copy of the tile sprite, you can perform sprite functions and then tile functions together and get the size of the tileset that way.Has anyone found a solution for this?
//how many tiles wide/high the tileset is, based on the sprite s_tile
var w = sprite_get_width(s_tile)/tilemap_get_tile_width(tilemap);
var h = sprite_get_height(s_tile)/tilemap_get_tile_height(tilemap);
show_debug_message("Width : " + string(w) + ", Height: " + string(h));
Ah yes, that is much cleaner. I'll edit my post for future reference, and make a note of your suggestion.The last option there is a checkbox, "Disable Source Sprite Export"