Gamemaker Studio 2 Gml !!exclusive!! -
GameMaker Studio 2 is a powerhouse for 2D game development, largely thanks to its proprietary scripting language, GameMaker Language (GML). While the engine offers a visual "Drag and Drop" system, GML is where the real magic happens, providing the flexibility and power needed to build professional-grade titles like Hyper Light Drifter or Undertale.
// In obj_goblin (Child) // Inherits hp and speed, but we override: hp = 30; speed = 3; // Call parent event using event_inherited(); gamemaker studio 2 gml
var temp_x = x + 10; // Good
temp_x = x + 10; // Bad (creates instance variable)
Collision Events
You can also use the Collision event (e.g., Collision with obj_lava): GameMaker Studio 2 is a powerhouse for 2D