A downloadable GameMaker library

Download NowName your own price

Overview

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 rooms into smaller sections, loading or unloading them dynamically as the player moves closer or farther 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.

Features

  • Pure GML Implementation. No extensions or external tools required.
  • Easy Data Handling. Initialize and remove data in multiple ways: Single or Multiple, ArrayPrefix, Tag, or All. Retrieve core room info with Getters.
  • Flexible Loading. Load Full Rooms, Instances or Tilemaps at any position in the current room - all with optional origin, scaling, mirroring, flipping and rotation.
  • Filtering Options. Filter elements by Asset Type and/or layers by Layer Name.
  • Full Lifecycle Control. Manage loaded contents with Payload tracking - Fetch IDs and Destroy loaded elements.
  • Screenshotting. Capture room Screenshots from anywhere, without ever visiting target rooms - with optional part definition, scaling and filtering.
  • Fluent State Builder. Configure optional arguments before loading or screenshotting in a simple, English-like flow.
  • Quick Debug Loading. Load any room in the project at the mouse position with fully configurable parameters via the Debug View interface. Perfect for quick testing - no code required!

Credits

GameMaker Awards!

GMRoomLoader was nominated in the Best Tool category two years in a row - at both the 2024 and 2025 GameMaker Awards!

Games Using GMRoomLoader

Tutorials

Updated 2 days ago
StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(7 total ratings)
AuthorGleb Tsereteli
Made withGameMaker
Tagscookbookjam, GameMaker, prefabs, Procedural Generation
Code licenseMIT License
Average sessionA few minutes
LinksGitHub, Documentation, Discord

Download

Download NowName your own price

Click download now to get access to the following files:

GMRoomLoader v2.4.0.yymps - Local Package 38 kB
GMRoomLoader Demo.yyz 1.2 MB
GMRoomLoader First Setup.yyz 315 kB

Development log

View all posts