Wondering if someone can help me out with my issue regarding loading and destroying (but then loading again) collision tiles.
-So, my levels are quite large. Maybe 10,000 x 5000.
-Tiles are being loaded in from Tiled, no problem.
-I have a separate set of invisible collision tiles (active objects) that are created on top of the relevant graphic tiles.
Is there a way to destroy these active objects when they're off-screen? And have them recreated when on screen?
As it stands, it loads all the collision tiles for the entire level at once, and it's definitely causing fps issues.
Initially, I was just loading in an extra layer from Tiled as a collision layer, but the collisions get very weird if you're using lots of slopes and curves
(ala sonic the hedgehog)