Okay, so I have a very simple problem that I have no idea how to approach. I'm making a **2d Topdown game** and I would like chunks of space to load around my ship but as I move away from them they will be despawned and new chunks spawn in front. if you fly back you can see the older chunks just as they were earlier. just like a top down Minecraft. inside the chunks, I have code for randomly placed enemies and stars and whatnot but I have no idea how to spawn chunks. this should be an infinite world, no borders, you can fly as far as you want.
the chunk I have is just a black sprite 100/100
This is how they would load
![alt text][1]
[1]: /storage/temp/99722-genhelp1.png
as far as my skill goes I'm not new to coding but not great either so keep that in mind.
I have no clue how to go about doing this so any help would be appreciated.
Thank You :)
↧