Level editor save and load with save file

I had an idea to save and load a level made by a player and here was my idea:

  1. Give the song used and all blocks an ID
  2. Save every blocks position
  3. Save it on a strip of numbers such as ( 1 (normal block) 3 (x position) 3 (y position)
  4. do the same for every block placed and delete strips when that block is deleted
  5. be able to paste the code and load the level with the numbers as a guide.

I thought, “well use a Text list!” but then remembered that I have no idea how to use a text list, as I have never used one before in my code. So I dont know what Im asking, for a tutorial on how to use lists, or how to make the save and load code. Im not 100% sure. I guess its your choice!

You pretty much got it, just need to put it into code.

You can look around there to understand how it works

Thanks @CodeAlpaca you can be a coders life saver!

1 Like