Understanding component ( ≧ᗜ≦)

This tutorial focuses on giving clear overview of what components are and how they work in Yahaha. I’ve created a video walkthrough, and this text-based guide will reinforce the key concepts and show how to assemble and use components to build your game — no coding required.
Video

What is component?
Components are systems or scripts that handle specific logic or tasks. They are designed to be modular, reusable, and able to work together to form more complex behaviors. Think of them as the building blocks of your project. This technique is known as component-based architecture, a common approach in both game development and software engineering. It helps save development time by allowing components to be reused across different parts of a project. In Yahaha, this concept is built in—creators have access to a variety of ready-made components, making it possible to build entire games without writing any code.

Event
In programming, an event is like a signal. It provides a way for different scripts to communicate, share data, or notify each other when something happens. When an event is triggered, any object in the scene that’s listening to it can respond accordingly. In Yahaha, many components come with built-in events, making it easier to connect different elements and build complex game mechanics without writing code.

EventTrigger component
To make it easier for creators, Yahaha provide us with EventTrigger component. This component can listen to any event from a referenced game object and then perform multiple action to create a working game.

Pairing component
Some components in Yahaha work in pairs—they rely on each other to function properly. For example, the Simple Animation Player component can’t be used on its own. It needs to be paired with an Animator Controller to actually play animations. Without both components working together, the animation system won’t function as expected.