Sub topic 10
Showing the Player What a Verb Can Do
This chapter assumes you understand a basic game loop or turn structure and can read short code examples. You will learn how to make a verb visible, understandable, and predictable without explaining every rule in a tutorial window.
Affordances and feedback
An affordance is a visible clue about what an object allows the player to do. A crate that shows a hand icon affords grabbing. A glowing lever affords pulling. A ledge with a clear landing space affords jumping.
An affordance answers, “What could I do here?” Feedback answers, “What happened when I tried?” These ideas work together:
- Show a possible verb before the player commits.
- Show the target that the verb will affect.
- Confirm success with motion, sound, animation, or a state change.
- Explain failure with a specific response.
- Keep the same verb consistent across similar situations.
A generic “no” sound is weak feedback. “Too heavy,” a strained animation, and a small stamina decrease tell the player more. The player can then change tactics instead of guessing.
Signal the whole interaction
A verb is easier to understand when its complete path is visible:
- The player notices a target.
- The game indicates an available verb.
- The player chooses the input.
- The game shows the result or explains the constraint.
For example, when the player aims at a crate, outline it and display “Grab.” If the player lacks stamina, keep the crate visible but show “Need 5 stamina.” Do not hide the interaction entirely. The player should learn that the crate is grabbable and that stamina is the current restriction.
State changes should update the signal. A lever might show “Pull” while closed and “Reset” after it has been activated. A door might show “Open” when unlocked and “Requires key” when locked.
INTERACTIONS = {
("grab", "crate"): "pick_up",
("grab", "lever"): "pull",
}
def affordance(verb_name, target, stamina):
outcome = INTERACTIONS.get((verb_name, target))
if outcome is None:
return "No interaction"
if verb_name == "grab" and stamina < 5:
return "Grab: need 5 stamina"
return f"{verb_name.title()}"
print(affordance("grab", "crate", 10)) # Grab
print(affordance("grab", "crate", 2)) # Grab: need 5 stamina
print(affordance("throw", "lever", 10)) # No interactionThe displayed text is not the verb system itself. It is a readable view of the verb's current preconditions and possible outcome.
Use layered feedback
Use several feedback channels, but give each one a job:
- Visual: highlights, icons, animation, particles, and changed object states.
- Audio: distinct sounds for success, failure, impact, and cooldown.
- Motion: recoil, object movement, camera response, or controller vibration.
- Text: short labels for unfamiliar actions or important restrictions.
Do not make color the only signal. Pair color with shape, text, sound, or motion so that the interaction remains clear to players with color-vision differences or muted audio.
Avoid misleading signals
A visible prompt creates a promise. If “Grab” appears but the object cannot be reached, the player learns that prompts are unreliable. Check range, line of sight, target state, and resource requirements before showing an affordance.
Inputs should also match the promise. If the prompt says “Press E,” pressing E should perform the shown verb, not open a separate menu. Keep input labels consistent across the game, and show cooldown or unavailable states when timing matters.
Exercise
Exercise
A locked door displays “Open” when the player has no key. What should change?
Show answer
Replace “Open” with a useful state such as “Locked: key required,” while keeping the door visually identifiable as an interactive target.