How to save and load tiles

I want to make a tile level editor. How do I save and load tiles?

Hey!
My good friend @VegeTato actually made his own extension and template on this!

You can check it out here:

2 Likes

ok but will it work with 80k+ tiles?

doesent it also work like that with tilemaps?

I’m not sure, you would probably need to ask him. I’d recommend leaving a comment on the template, because he will probably respond to that faster than a reply here in the forums.

I haven’t used the land maker template before, but according to my knowledge it does use tile maps.

1 Like

I have tried to make it right now,

and it worked!

well, i only managed how to take away blocks, not build…

but im getting there!

How to make tilemap block grid like movement

Go to save all section
This is all you need

In fact you will find there link to my itch project which have functionality of level editor
It just don’t have actual level tiles but few random objects
But core concept is the same

And last time i tested i was able to save over 1m objects
YET it did freeze my game when saving/loading for about half sec

2 Likes

There’s a useful tip in this thread regarding using a wait to prevent the setting of user variables to 0. Previous to seeing @RMDB’s response on this thread I’ve been checking whether they’d been set to 0 and setting them back again! …which felt clucky!
Zero …when do we start recommending save state? (which I’ve still not used? Are the devs looking at this and wondering why people aren’t recommending it? Has anyone used it and wondered why it’s not getting recommended?

1 Like

The funny thing is that I’m the one who suggested it… and I’m still not using it… lol…(but i added it anyway)

it’s a very, very useful feature and it prevents storing too many JSONs and unnecessary variable steps.

The problem is that right now there are some minor fixes that need to be addressed… “to me” it doesn’t seem anything serious.

As for when to save… you really need to think carefully about it… I would only do it when there are no shifts or variable changes…or wait/timers things.

if you want to use it to save tile…do it after anything is placed…(IF…tiles are saved)

2 Likes

1 - If you are talking about wait action in my tutorial then you totally don’t understand that is just one way to do it
Where it could be done with compare two numbers and TimeFromStart() expression
Or
INVERTED At beginning of scene
Trigger once
Or
Boolean variable
Or even
Animation change of any object
Heck even with checking text of text object

2 - What WE?
I suggest what i believe is easy and/or best to use
You want to suggest something just cause its new?
Cause you think its better without knowing if its better or not?
And on top of that something you literally just admitted you didn’t use yet?

So not WE but YOU better stop suggesting stuff in this kind of way to any1

3 - Devs don’t care what you recommend
Devs make tools for us to use
At best they only care are we describing them correctly and suggesting them in proper scenarios
Same like you have change opacity value which you can change to 0 (you don’t see object anymore)
And to 255 (which is max opacity and you see object)
And then you have show and hide actions
Never seen any1 suggest one over another cause one is better from other
Only suggesting proper one for this or that case scenario

1 Like

You’re not the only one… I noticed it too and I asked for it. Not exactly for everything…but I also wonder if it wouldn’t be better to just use opacity.

proof

edit: i mean i’ve noticed that opacity allow better object manipulation with less effort…basically avoiding minor steps like “show” or like create/show/set opacity…or more common “start hidden/create/set opacity/show”…isn’t better to just use set opacity?

sry for the little OT

1 Like

Great - I’ll consider those alternatives that you suggest and i’ll endeavour to question the legitimacy of recommending things that I’ve not tried before :smiley:

1 Like

As for opacity Davi told me once its cause sometimes you want to either show or hide
And sometimes you want to be able to adjust value of opacity
TEHCNICALLY we just need opacity change and don’t need show/hide at all
BUT some ppl don’t even use opacity at all they only use show/hide
So like let’s make 1 group happy and punish another?
NAH

THEN let’s think about audio
We have volume 0 to 100 but we don’t have set volume to max
We just have change volume
We can argue here day and night i will always opt in for giving us more control over forcing us to choose only one

1 thing i can guarantee here
You will NEVER make everyone happy

@petlimpet Right now we have that AI booming
Someone likes it or not i do not really care
Ppl will either love it or will avoid it like fire to the point they will fight pp who use it
Excuse me for what exact reason?
I don’t drink alkohol i don’t like taste of it for me it could simply stop being manufactured
Does that mean it should?
Someone want to drink i say let them drink

I think AI is good in some stuff where in other its bad for example one user on discord came with event like

Action
Change variable CurrentWeapon SET TO mod(CurrentWeapon+1,3)

Until that moment i was using
Action
Change variable CurrentWeapon ADD 1
Change variable CurrentWeapon SET TO mod(CurrentWeapon,3)

So i was able to reduce actions i used to 1 instead of 2
Not much but i cannot even count in how many situations i am using this simple formula even with clamp() or min() or max()

And guess what he told me when i ask him how he came up with it
CHAT GPT

Do not suggest something cause its new and do not warn about something cause you don’t like it
Test it
Check pros and cons
And then your opinion is solid and have some value