Skip to content

Allow guards to not have cone of light #2249

@manuq

Description

@manuq

Guards have 2 detection areas:

  • A cone or semicircle (in yellow below) that points to the walk direction
  • A circle around (in red below) for instant detection
Image

In some cases, like above, the "detection area scale" (which affects the cone of light) is set to the minimum. Which is 0.1 in the editor slider. My understanding is that it is done this way so the circle around takes precedence, and only because the light can't be deactivated. Visually, this leads to guards that have a little triangle of light illuminating them instead of the ground (also seen in the screenshot of #2248). The quickest solution could be to just hide or disable the Light2D when the scale is 0.1.

The other exported properties for detection could be revisited as well: "Player instantly detected on sight" is for the cone of light. And it should be the same as setting zero to the "Time to detect player" property, except this was has a minimum of 0.1 in the editor slider. Or maybe this was on purpose?

XP Summary (total 600)

Subdomain Skill XP
Engineering: Gameplay & Systems Programming Problem Solving 75
Engineering: Gameplay & Systems Programming Creativity & Design Thinking 150
Engineering: Gameplay & Systems Programming Technical Literacy 150
Game Design: Core Gameplay & Mechanics Problem Solving 75
Game Design: Core Gameplay & Mechanics Creativity & Design Thinking 75
Game Design: Core Gameplay & Mechanics Technical Literacy 75

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions