Sub topic 7
Feedback That Explains Cause and Effect
Assume you understand a game's core loop and can read basic code. This chapter focuses on feedback: the information a game gives after a player acts. Good feedback helps the player connect an input to a result and choose a better next action.
Build a clear causal chain
A useful feedback loop has four parts:
- The player forms an intention.
- The player performs an action.
- The game changes its state.
- The game communicates that change.
For example, a player sees a gap, presses the jump button, moves upward, and hears a jump sound while seeing the character leave the ground. The result confirms both that the input worked and that jumping is the correct response to the obstacle.
Feedback should answer three questions:
- What happened?
- Why did it happen?
- What can I do next?
If the player presses a button and nothing visibly changes, the game has broken the chain. The player may blame the control, the character, or their own timing.
Match feedback to the result
Use several channels when the result matters:
- Motion shows a physical change, such as recoil or movement.
- Animation shows state, such as a shield breaking.
- Sound confirms an action without requiring the player to look away.
- Particles or color emphasize impact, danger, or success.
- Text or icons explain a rule that cannot be shown clearly.
The channels should agree. A successful attack should not produce a weak sound, a harmless animation, and a red failure flash at the same time. Conflicting signals create uncertainty.
Feedback also needs the right timing. Immediate feedback confirms the input. A short follow-up effect can show the consequence. For example, a hit sound can occur on contact, while an enemy stagger animation shows that the attack interrupted it. Delayed feedback is useful for long-term results, such as a quest completion screen, but it should not carry the only evidence that an action worked.
Make feedback specific and consistent
Generic feedback such as “Good job!” does not teach much. “Shield blocked 12 damage” explains the event and gives the player a rule they can reuse.
Keep the same cause-effect relationship throughout the game. If a blue flash means “mana gained” in one scene, do not use it to mean “quest accepted” later. Consistency lets players learn the interface as a language.
A simple event-driven design keeps the result tied to the action:
type GameEvent =
| { type: "attack_hit"; damage: number }
| { type: "attack_missed"; reason: "out_of_range" | "blocked" };
function describeAttack(event: GameEvent): string {
switch (event.type) {
case "attack_hit":
return `Hit confirmed: ${event.damage} damage.`;
case "attack_missed":
return event.reason === "out_of_range"
? "Missed: move closer."
: "Blocked: wait for an opening.";
}
}
console.log(describeAttack({ type: "attack_missed", reason: "out_of_range" }));The game can use this result to trigger matching sound, animation, and UI. The important detail is that the feedback comes from the actual game result, not from the button press alone.
Avoid noise and ambiguity
More feedback is not always better. Effects can hide the important signal, sounds can overlap, and repeated damage indicators can become visual noise. Prioritize information that changes the player's next decision.
Test feedback without explanatory text. Ask a player what they think happened and why. If their answer does not match the game state, strengthen the signal, change its timing, or remove competing effects.
Exercise
A player presses attack, hears a sound, but the enemy remains unharmed because it is out of range. What should the game communicate?
Show answer
It should show that the attack was attempted but missed, identify the cause such as “out of range,” and suggest moving closer.