GameMaker Studio uses its own scripting language called GameMaker Language (GML). It's a C-like language designed to be user-friendly and easy to learn for beginners, but powerful enough to facilitate complex game development tasks for more experienced developers.
Here is a simple example of GML code that creates a moving object:
This code would typically be placed in an Object's events within GameMaker. The
Create event initializes the object's speed and direction. In the
Step event, it checks for keyboard input and updates the object's position accordingly with the
lengthdir_y functions which calculate the horizontal and vertical components of movement based on the direction and speed.
For interfacing with the engine, GML provides a wide range of built-in functions and variables to manipulate graphics, sounds, input, physics, and much more, allowing creators to focus on their game logic without worrying too much about low-level programming concepts.