Skip to content
Hawkmax edited this page Oct 20, 2025 · 2 revisions

Description

The #const command resolves a GameMaker built-in constant at runtime.
For example: vk_left, mb_left, fa_left, ...

Syntax

member: { "key": "#const:<name>" }
key: no implementation

Param(s)

name: The case-sensitive name of the const you want to use.

Example

Before Apply

{ // <-- root
    // In the line below, the `#const` command will have to value of the const named 'vk_left'
    "ref_const": "#const:vk_left"
}

After Apply

{
    "ref_const": _runtime const value_
}

Author’s Recommendation: next read #enum

Clone this wiki locally