Forum rules - please read before posting.

NPCs always face the Player

edited February 26 in Technical Q&A

I'm making a 2D game. I want the NPCs always to face the Player wherever the Player goes.

Currently, I'm using NPC Follow, setting Minimum and Maximum distance really high to not let the NPC move, and then checking Face when idle.

https://drive.google.com/file/d/17rj0gGbEWI9vf_GFb57y4x1qzelcFbid/view?usp=sharing

Is there any other better way to do it?

Thanks!

Comments

  • It's a novel approach. You could likely ignore the min/max distance values if the NPC's Walk speed scale was zero.

    The other way - aside from scripting - would be to use the Character: Face object Action on a loop in a background Cutscene. Though, your approach should only need to be called once, and will also be recorded in save-game data. I'd say if it works, keep it.

  • Change the Walk speed scale seems a better choice in my case. Also great to know other options. They would fit into different situations.

    Thanks a lot, Chris!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.