Question: Does GameMaker have block coding?


GameMaker Studio 2, the popular game development platform, is primarily known for its custom scripting language called GameMaker Language (GML). GML is a C-like programming language used to code games within the GameMaker environment.

However, for those who are new to programming or prefer a more visual approach, GameMaker introduced a system called "Drag and Drop" (DnD). This feature allows developers to create games using pre-built actions represented by blocks that can be dragged into the workspace and configured to control objects and define game logic.

The Drag and Drop interface in GameMaker is designed to be an entry point for beginners to learn basic programming concepts without writing code. It's particularly useful in educational settings or for those transitioning from block-based coding environments like Scratch.

Here's a simple example of how you might move an object using Drag and Drop:

  1. Create an event in your object, such as the Step event.
  2. From the Drag and Drop actions, drag a "Move Fixed" action into the event space.
  3. Configure the move action with a direction and speed.

While the DnD system doesn't allow for the same level of depth and control that GML does, it provides a substantial amount of functionality out-of-the-box. For complex behavior, you would typically transition from Drag and Drop to GML where you have more flexibility and power.

It's important to note that as GameMaker continues to evolve, features and capabilities can be expanded or modified. Always refer to the latest documentation or updates released by YoYo Games for the most current information regarding GameMaker's features.

Was this content helpful?

White Paper

Free System Design on AWS E-Book

Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.

Free System Design on AWS E-Book

Start building today

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.