Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TouringBus opened this issue Jun 19, 2019 · 0 comments
Open

Comments

@TouringBus
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant