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.)
| 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.