How to create Procedural Generation for a 2D platformer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GarterSnake502

I am making an open world 2D platformer. I have a tilemap, and want to create an infinite course or environment. Basically, I want to create a large side-scrolling world that the player can navigate. I have tried to use the set_tile function, but I cannot figure out how to make hills, trees, and such. Any help would be appreciated!

Procedural level generation requires “complex” algorithms. Try google searching that and using them in godot.

magicalogic | 2021-05-01 18:09

I have looked, but I have not found any generations for 2D platformers. They are all top-down or 3d. Do you know of any sites-or scripts-to create a side-scrolling world?

GarterSnake502 | 2021-05-01 20:05

:bust_in_silhouette: Reply From: TTF DPC

You can save the components in individual scenes and then load them by random number to a random position. (Of course, you have to be careful that nothing overlaps) This is how I created my 2D open world.

Thanks! It worked. I made different tilemap layouts and loaded them together. I also generated random numbers to place animals and trees. Thank you for answering!

GarterSnake502 | 2021-05-19 11:33

Could pls someone explain me how do i do this, because i am new at coding and dont know much. ty

HelpMe | 2022-01-15 10:19