GameMaker Studio - Lesson #11: Events (Beginner Tutorial)

Опубликовано: 08 Август 2026
на канале: Sempiternal Rain: Notes
2,163
81

"Dear friends! If you enjoyed the video, please give it a like and subscribe to the channel. We strive to share with you the lost knowledge of the great prophet and teacher of GameDev, Sempiternal Rain. With these lessons, you'll learn the GameMaker Studio game engine. Learn programming in Game Maker Language (GML). And in the future, you'll be able to easily create virtually any 2D game for video consoles, computers, and phones."

Description and tips below. Enjoy!

VK Community:
sempiternalrainnotes - Sempiternal Rain: Notes
(Chat, news, and community available - Subscribe!)

Games created by the great prophet of the gaming industry, Sempiternal Rain. You can purchase them on Steam:

1. "Socialism Simulator"

2. "ReLinked"

-------------------------------------------------------------------

Lesson Title:
GameMaker Studio - Lesson #11: Events

Lesson Description:
In this video, you'll learn about object events.

Timecodes:
00:00 - Introduction
00:14 - Context Menu
00:40 - Additional Information
01:05 - "Create" Event
01:21 - "Destroy" Event
01:41 - "Clean Up" Event
01:50 - "Step" Event
02:08 - "Alarm" Event
02:17 - "Draw" Event
04:10 - "Mouse" Event
05:41 - "Key Down", "Key Pressed", "Key Up" Event
06:30 - "Gesture" Event
06:30 - "Collision" Event
07:27 - "Other" Event
10:07 - "Asynchronous" Event

-------------------------------------------------------------------

*****

Context Menu:
Cut Event - cutout. Event
Copy Event - copy an event
Paste Event - insert an event
Dublicate Event - create a duplicate (transfer event code)
Change Event - change events
Convert to DnD - convert to visual programming
Delete Event - delete events

*****

"Create" event - handled when an object is created. For example: a bullet is created and the code in this event is processed.

"Destroy" event - processed when an object is deleted.
For example: when a bullet collides with a wall, it is destroyed and this code is processed.

"Clean Up" event - processed when an object is deleted or moves to another room.

"Step" event - processed every frame (Begin Step, Step, End Step).

"Alarm" event - processed when an alarm (timer) is triggered.

"Draw" event - drawing event.

"Mouse" event - mouse button press event.
*Dowm - button held down.
*Pressed - button pressed.
*Released - button released.
*Enter - move cursor over object.
*Over - remove cursor from object.
*Global - anywhere on screen.

"Key Down" event - keyboard button held down.
*No Key - no key pressed.
*Any - Any key pressed

"Key Pressed" event - keyboard key pressed
*No Key - no key pressed
*Any - any key pressed

"Key Up" event - keyboard key release event
*No Key - no key pressed
*Any - any key pressed

"Gesture" event - phone or tablet gestures
*Tap - screen tap
*Drag - drag
*Flick - scroll
*Pinch - click
*Rotating - rotate
*Global - anywhere on the screen

"Collision" event - handled when an object collision occurs

"Other" event
*Outside Room - exits the room
*Interect Boundary - intersected but not yet exited the room *Views - views (displaying a specific section of the map)
*Game Start - when the game starts
*End Start - when the game ends
*Room Start - when a room starts
*Room Start - when leaving a room
*Animation End - when an object's animation ends
*Path Ended - when the object has finished moving along its designated path
*User Event - user events

"Asynchronous" event - for networking

*****

Notes:
1) draw_self(); in the "Draw" event to draw the object.
2) move_towards_point(x,y,10); - move the object. Specify the coordinates and speed.

/////////////////////////////////////////////////////////////////////
Tags:
#gamemaker, #gamemaking, #2engine, #programming, #gamelessons