This basics video tutorial crash course shows you what structs are in GameMaker. An advanced video will go into constructors and more functions.
Structs are in principle ligh object or simply data containers. These data containers have a specific syntax which is very similar to the JSON standard (OOP: object oriented programming). Jason stands for Java script object notation and is an universal file format for human reading. The idea is that you have keys (the name of a variable) and values (the actualy value assigned to the variable) inside a struct. That can be used to created topdown hierarchies (nesting, a struct in a struct etc.) that can be chained (with the dot operator) together .
In short: Structs are light weight object with key values data inside them. That's it.
Offical manual:
[ Ссылка ]
Video in detail about structs:
[ Ссылка ]
👑 Support me and get fresh game art and game maker projects every month:
[ Ссылка ]
Follow me on:
📸 Instangram: [ Ссылка ]
🐦 Twitter: [ Ссылка ]
💬 Discord: [ Ссылка ]
📜 Udemy: [ Ссылка ] (See youtube about page for discount)
CHAPTERS
-------------------------------------------------------------------------------------------------------
0:00 What we will do
0:33 Subscribe
0:44 What is a struct? Spoiler, a light object
2:04 Syntax of a struct (JSON format)
6:02 The big no noes what not to do
6:42 Why use structs
7:50 Game shown: Tears of Astalon
Ещё видео!