Activity 1.2
Transforms and Your First Scene
Key Concepts
Transforms
MeshInstance2D & Modulate
Transforms
Every object in a 2D (or 3D) scene shares the same three basic properties for how it sits in the world.
Position
Where the object is.
Rotation
Which way the object is facing.
Scale
How big or small the object is.
Together, position,rotation, andscale are called atransform. This idea shows up in every game engine, not just Godot.
MeshInstance2D
Not everything on screen has to be a picture. AMeshInstance2D draws a simple shape — a quad, a circle, a capsule — without needing any texture at all.
Modulate
The Modulate property tints a Node's color without changing its actual texture or mesh — useful for quick color variations.
Building a Scene
A handful of Sprite2D and MeshInstance2D nodes, each with its own transform and color, can be arranged together into one composed picture.
Next week we'll dig into exactly how Godot organizes these pieces — for now, just have fun arranging them.
Today's Objectives
- Moving, rotating, and scaling a Sprite2D
- Adding a MeshInstance2D and using Modulate
- Combining several nodes into one composed scene
Key Terms
- Transform
- A Node's position, rotation, and scale together.
- Position
- Where a Node is located in the scene.
- Rotation
- Which direction a Node is facing.
- Scale
- How large or small a Node appears.
- MeshInstance2D
- A Node that draws a simple shape without a texture.
- Modulate
- A property that tints a Node's color.