Skip to content

More flexible alternative to default 4-direction "Turn Towards Player" #44

@TouringBus

Description

@TouringBus

Using the default 'turn towards player' command, the NPC will snap to a perfect N/S/E/W facing.

Once we're using pixel movement, this looks pretty unnatural and doesn't work great for things like monsters or bullets or whatever. Could we add a plugin command for moveroutes that turns the NPC to the player's exact angle, so they'll head in a straight line that aims directly towards the player?

This applies similarly to the 'turn away from player' option.

(Obviously this could be extended further, but since this is intended to be a 'drop in replacement' for the default movement setup, changing movement routes first seems to make sense)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions