Basically i want to make a procedural generated map with 40 chunks each. By a chunk I mean a peace of a map pre-made.
Then i will randomly peak chunks ant put them together to generate a different map all the time.
However I think I found a solution. I created a json template for each chunk, with type of object, positions, ... And then it loads the json and generates objects based on the configurations of the json.
But I can't seem to load a json to the tilemap with js i have used things like
newTile.#private.LoadFromJson('{"c2tilemap":true,"width":12,"height":14,"data":"84x-1,1,2x-1,9x1,72x10"}')
self.C3.Plugins.Tilemap.Acts.LoadFromJSON('{"c2tilemap":true,"width":12,"height":14,"data":"84x-1,2x1,2x-1,8x1,72x10"}');
newTile.#privateWi._LoadFromJson('"{"c2tilemap":true,"width":12,"height":14,"data":"84x-1,2x1,2x-1,8x1,72x10"}"' )
And nothing seems to work. I know that this is not the main question, but can you help ?
Thanks