
Media Concept
To give newcomers the opportunity to learn the essential fundamentals of the free, open-source Godot engine through easily understandable materials.
Six-Month Plan
Chronology:
Determine which processes in media content creation can be automated.
Select 10–15 of the most important and useful engine aspects for beginners.
Rank them from easiest to most complex.
Write clear explanations with examples for each aspect. 1 aspect = 1 post.
Create the posts on the selected platform.
10 condensed media examples
- Nodes.
They are the building blocks. You can compare them to human cells. Each node has its own purpose.For example, Sprite2D allows you to load a png/svg image into it. CollisionShape2D allows you to select the collision and its shape. Area2D is needed for collision detection.Nodes can be combined with each other to create something new. For instance, CollisionShape2D + Sprite2D + Area2D adds collision to a sprite, preventing the character from passing through the sprite.However, nodes cannot simply exist. They must always be contained within a specific scene.
- Scenes.
If nodes are cells, then scenes are the people composed of those cells. A scene can contain anywhere from one to many nodes.
When creating a scene, you must select a root or key node. For the YellowStar scene, you can select Sprite2D as the root node, and CollisionShape2D and Area2D as its children.
Scenes can be layered on top of each other.
For example, there is the Main scene. This could be one large level. If this level requires background decoration, you can import a previously created YellowStar scene into it. Consequently, inside the large Main, there will be the child scene YellowStar.
When clicking on the YellowStar scene, the settings for the initially selected root node will appear on the right side.
- Scripts.Scripts allow you to make scenes more engaging. If you want a Sprite2D inside YellowStar to disappear after colliding with the player, you need to write a script.Scripts should be attached to specific nodes. Inside a Yellow Star scene, you can attach the script to the Sprite2D node.Now, you can access all Sprite2D properties in the script: color, transparency, size, and so on. If you need to access a child’s properties, you must create a variable to hold a reference to that child. When declaring the variable, you can use a dot and then select the desired child property.scale = Vector2(0.2, 0.5) — resizing the parent.child_reference.scale = Vector2(0.2, 0.5) — resizing the child.
- Variables.Variables are containers that store something. In the Godot programming language, known as GDScript, they are designated with the keyword
var(short for Variant).var number = 153 var name_surname = «Steven Universe»print (number) will output 153. print (name_surname) will output «Steven Universe».
- Data TypesGodot has many of them, but the most basic ones are int, float, and string.int — integers (1, 2, 3) float — decimal numbers (1.520) string — characters/words/letters («HSE»)After a variable name, you can specify a particular data type, which indicates that the variable can only store a specific type of data.var number: int = 153 means that the variable number can only store integers.
- Using Node Properties in Scripts.If a script is attached to a Sprite2D, you can define, for instance, scale = Vector2(2.0, 5.0) within the script.Now, the size of the Sprite2D will be 2.0 along the x-axis and 5.0 along the y-axis.
- Signals. Each node has access to various signals. For example, Area2D has access to the area_entered signal, which is emitted upon collisions. This signal can be connected to a function—this function will be called when a collision occurs.
- Functions.These can be compared to instructions.func change_location_and_scale (): position = Vector2(5.0, 5.0) scale = Vector2(2.0, 5.0)If the script calls the function change_location_and_scale (), the engine will go through each line and execute the specified actions.The function change_location_and_scale() can be connected to the area_entered signal. Now, upon contact, the Sprite2D’s position and scale will change.
- Built-in Functions.They are called built-in because the mechanism of their operation and their invocation are already hardcoded into the core of the engine.Instructions written for func ready () execute only once—upon the very first launch of the game.Instructions written for func process () execute continuously as long as the game is running.
- Function Parameters and Arguments.The need for them becomes apparent as the game’s complexity increases.The most common function that adds a fixed number, 5, to health upon each call:
func heal ():
health = health + 5Or you can do this:
func heal (amount):
health = health + amountNow, when calling the function, you can write heal (20). In the call heal (), you can write any necessary number.The
amountinheal (amount)is the parameter, and the number 20 inheal (20)is the argument.Now, add to health the number specified in the parentheses.



