1-800-STAR-WARS Posted February 3, 2014 Share Posted February 3, 2014 Feel like I'm missing something obvious here, but how can I remove a tilemap (in order to load another one in)? I've tried calling Tilemap.destroy() but it doesn't get removed from the canvas. Link to comment Share on other sites More sharing options...
jpdev Posted February 3, 2014 Share Posted February 3, 2014 The layer objects are what is actually drawn every frame.If you destroy a layer it will no longer be displayed. 1-800-STAR-WARS 1 Link to comment Share on other sites More sharing options...
1-800-STAR-WARS Posted February 3, 2014 Author Share Posted February 3, 2014 The layer objects are what is actually drawn every frame.If you destroy a layer it will no longer be displayed. Got it, thanks! Should that maybe be part of Tilemap.removeAllLayers() (which is called by Tilemap.destroy)? Link to comment Share on other sites More sharing options...
Recommended Posts