Skip to content

Setup

To use ScaffScript, you’ll need the following:

NameVersionSupportedNotes
GameMaker2.3+
GameMaker1.xMay work, but not tested

You can use any text editor you want. But it’s heavily recommended to use text editor that supports integrated terminal for better development experience.

NameVersionSupportedNotes
Bun1.xRecommended
Node.js20+
Other JS runtimes-May work, but not tested

To create a new ScaffScript project, you can use bun (recommended), npm, or pnpm:

Terminal window
# make sure you're in your project root directory
cd path/to/your/project # path/to/your/project>
Terminal window
bun create @scaffscript/project@latest

You’ll be prompted to answer a few questions to set up your ScaffScript project:

  1. Project Name, this is the name of your ScaffScript project, not your GameMaker project. Required.
  2. Package Manager, you can choose between bun, npm, and pnpm. Default is npm.
  3. Create GameMaker Project, if you want to create a new GameMaker project for your ScaffScript project. Default is n. If you choose y, you’ll be prompted to enter:
    • GameMaker Project Name, your GameMaker project name. Default is the same as your ScaffScript project name.
    • GameMaker IDE Version, your used GameMaker IDE version. Required.
  4. Initialize a Git repository, if you want to initialize a Git repository for your ScaffScript project. Default is n.

Before moving on, let’s make sure everything is set up correctly. Run the following command to test your setup:

Terminal window
bun run help

If you see the help message, congratulations! You’ve successfully set up ScaffScript.