NIGHTSUNDER · DEVELOPMENT JOURNAL

Interaction System: Focus and Prompts

Nightsunder now has a working interaction system. Approach an interactable object and look toward it, and a prompt such as “Open Chest” appears; pressing E engages it.

How focus works

The system selects the nearest valid object in front of the player. Once something is focused, it stays focused until another object is clearly closer, so the prompt does not flicker between two objects standing side by side. Objects hidden behind walls are ignored, and crouching lowers the eye line without shortening reach. The same rules apply in both first- and third-person views, so interaction behaves identically in either perspective.

A base for interactable objects

Alongside the focus logic is a reusable building block for interactable objects, covering anything from doors and levers to one-time pickups that stop responding after a single use. Range, view angle and focus behaviour are tunable rather than fixed, so how generous interaction feels can be adjusted as more objects are added to the world.