I'm making a game for a Game Jam that has NPC's run away from you when the player reaches certain points in X,Y space. However, I need to trigger a series of movements in order to guide the NPC correctly through an area.
I've tried doing this by basically using a boolean variable and switching from the starting value of 0 to 1 whenever the player reaches the point at which the NPC's should start running. I then do a bunch of movement events on the NPC's when that variable is 1. However, the NPC's don't react at all that.
The NPC's should continue through their movement orders regardless of where the player moves. Basically, I want to proceed through the set of movement events independent of the player after he triggers it initially.
Is there a good way to do this?