How do i make that it saves?
if keyboard.press.SPACE then
lastblock += 1
name = "block" + lastblock
if sblock == "tile1" then
blocks[name] = Quick.addMap("tile1", player.x, player.y - 20, 20, 20)
elsif sblock == "tile2" then
blocks[name] = Quick.addMap("tile2", player.x, player.y - 20, 20, 20)
elsif sblock == "tile3" then
blocks[name] = Quick.addMap("tile3", player.x, player.y - 20, 20, 20)
elsif sblock == "tile4" then
blocks[name] = Quick.addMap("tile4", player.x, player.y - 20, 20, 20)
end
end
i want it to save the blocks and when you load in the game again it will load the level (blocks)