Skip to content

What is GMRoomLoader? ​

GMRoomLoader is a pure GML Free and Open Source GameMaker library made for creating room prefabs and loading room contents at runtime, AKA "loading other rooms into the current room".

It provides tools to process the data returned by room_get_info(), use that data to load room contents efficiently during gameplay, and clean up created elements when needed.

Use Cases ​

  • Procedural Generation. Create custom level templates and place them procedurally throughout your levels (e.g. dungeon rooms, chunks, NPCs or randomized props).
  • Chunking. Divide large worlds into smaller chunks that dynamically load when players approach and unload when they move away.
  • Room Thumbnails. Take screenshots of your rooms and use them in level selection menus, seamless room transitions or loading previews.
  • UI. Design your interfaces directly in the Room Editor and load them on the fly in-game (as of 2024.13,​ this is mostly superseded by GameMaker's UI Layers​).

DISCLAIMER

GMRoomLoader is designed specifically for loading room contents.

It does NOT provide tools for procedural generation or level layout creation of any kind (like deciding which room to load and where to place it). You'll need to handle that yourself.

Features ​

How does it work? ​

GMRoomLoader works by calling room_get_info() to grab the raw data of a room, parsing that data, optimizing it for loading, and then rebuilding room layers and elements when you use its Loading methods.

GameMaker can only have a single room active at a time and GMRoomLoader doesn't magically change that. Instead, it recreates the contents of other rooms inside the current room.

GameMaker Awards 2024 ​

GMRoomLoader was nominated for Best Tool in the 2024 GameMaker Awards! RoomLoader-Tool