GMLC
A downloadable compiler
🎮 GMLC – Runtime GML Compiler for GameMaker
📘 What It Is
GMLC lets your GameMaker projects compile and execute GML code at runtime, allowing live scripting, mod support, and dynamic behavior — all inside the GameMaker engine.
It’s the same language you already use in the IDE, just running dynamically during gameplay.
⚙️ Core Features
-
Compile and run GML source strings during runtime.
-
Tiered sandbox profiles for secure script execution (
pure,safe,moderate,unsafe). -
Fetch callable functions (like
main,step, ordraw) from compiled code. -
Full support for
static,constructor, andmethodsemantics. -
Clear compile-time and runtime error reporting.
🚀 Quickstart
var env = new GMLC_Env();
var program = env.compile("return 42;");
var result = program(); // Executes the compiled code
show_debug_message(result); // Prints: 42
Compiled programs behave like normal scripts and can expose callable sub-functions:
var env = new GMLC_Env();
var program = env.compile(@'
function foo() {
return "bar";
}
');
var _foo = env.get("foo");
show_debug_message(_foo()); // Prints: bar
⚠️ About execute_string()
A legacy helper, execute_string(_code), runs code instantly without caching or environment reuse.
It’s simple but slow — use only for quick, one-off tests.
execute_string(@"show_debug_message('quick test');");
🔗 Get the Library
Import the .yymps file into your project via
Tools > Import Local Package in GameMaker.
Full documentation, examples, and source: 👉 GitHub Repository
(Inspired by work from NerriKiffu and the GameMaker Kitchen community.)
| Published | 2 days ago |
| Status | Released |
| Category | Assets |
| Author | tinkerer.red |
| Tags | GameMaker |
Download
Click download now to get access to the following files:

Leave a comment
Log in with itch.io to leave a comment.