Python Game Maker Language
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GameMaker Studio 2 Offical Docs
json
snippets
utils
.gitignore
Default.sublime-commands Add new script command Jun 2, 2017
LICENSE
README.md
gml.YAML-tmLanguage
gml.sublime-completions
gml.tmLanguage
gml.tmPreferences
gml_dynamic_completions_and_marks.py
gmll.YAML-tmLanguage Add #macro to syntax and completion files Feb 23, 2017
gmll.sublime-completions Make function completions as snippets Jun 2, 2017
gmll.tmLanguage
gmll.tmPreferences
new_script.py
sample_program.gml
sample_syntax_highlighting.gml

README.md

GameMaker Language (GML) Bundle for Sublime

Features

  • Syntax Highlighting
  • Keywords/Built-In Variables Autocompletion
  • User-created Resources Autocompletion
  • Function/Control Snippets
  • Auto Indentation
  • Create new script through Sublime (Beta)

Installation

Using Sublime Package Control:

Command Palette (⌘⇧P)  ➤  Package Control: Install package  ➤  GameMaker Language (GML) Bundle

Restart your Sublime and you're ready to rock!

Usage

GameMaker: Studio 2

  • Checkout my tutorial on setting up your GameMaker Studio: 2 for Sublime!
  • Name your source file with extension gml. For example, example.gml. Syntax highlighting will be applied automatically.
  • Partially type keywords, built-in variables, and names of user-created resources to trigger autocompletion. To enable user-created resources completions, make sure your project root directory is opened in Sublime.
  • Partially type function names to trigger function snippets. If multiple parameters are avaliable, TAB (↹) to go to next one. Most of the built-in functions are avaliable as snippets.
  • Other custom snippets are: for, if, else, repeat, switch, while, with, and print that writes show_debug_message.
  • To indent your gml file, use: Command Palette (⌘⇧P) ➤ Indentation: Reindent Lines.
  • To create a new script, use: Command Palette (⌘⇧P) ➤ GameMaker: New Script

GameMaker: Studio 1.4 or earlier:

  • You need to copy & paste manually between Sublime and GameMaker: Studio.
  • Name your source file with extension gmll, the extra 'l' stands for legacy. For example, example.gmll.
  • User-created resources autocompletion is not supported.
  • Everything else is pretty much the same as GameMaker: Studio 2.