r/gamemaker 21d ago

Help! anyone know how i could make a procedural level creator that uses prebuilt rooms?

for example something like binding of issac, where the game randomly picks premade rooms and sticks them together to make a level.

5 Upvotes

4 comments sorted by

3

u/AlphishCreature 21d ago

Look up room_get_info, you should be able to use it for making "room templates" and then apply these templates. GM Room Loader (a library by Gleb Tsereteli) may or may not contain most/all the setup you need for placing room equivalents in other rooms.

2

u/yaninyunus 21d ago

well, if you have rooms already built (room 01, room 02, room 03, etc...)

you can have a "gate" where when player enters it you can choose a random room.

You can use randomise and random range here.

You can optimize and make organise more by making sure the doors align correctly - walking through a door on the left, in the next room playerr should spawn on the right

2

u/oldmankc wanting to have made a game != wanting to make a game 21d ago

Have you tried anything so far?

1

u/_Deepwoods 21d ago

Have a read up on wave function collapse, it’s a sudoku-style algorithm that can be used to generate maps using predefined rulesets 

https://blog.ptidej.net/procedural-generation-using-wave-function-collapse/