#Saving tiles in 4x

1 messages · Page 1 of 1 (latest)

still pumice
#

Hi, I'm making a Minecraft-like game, you can build, but I want the player to be able to save their builds (tiles position)
Is there any way to do this?
(I already know what Cloud Variables are)

grizzled frost
#

i dont know if theres any better way to do it but you could try making an array in cloud variables

#

a vector array

#

for example: create the vector array and name it thbe name of the block that you wanna save

#

now makeit so when yo7u place a block in the game it creates a new row in the array

#

after it creates the row make a custom component for the block with a number variable in it

#

so when you place the block it creates a row and it sets the number variable on the block the new rows number

#

for when you break a block it check the number on the block and deletes the that is the same number}

#

then you would have to make a system that reads all the rows on the array and places the blocks

#

in the vector coordinates

still pumice
grizzled frost
#

I could try and make it myself then sell it

#

Or I could send you images of the scripts

#

A question tho is it going to be for one map or more than 1

late marlin
#

Video pls

still pumice