Triggering NPC movement

0 favourites
  • 1 posts
From the Asset Store
Fantasy RPG Human-NPC assets pack of 15 characters
  • Hi there.

    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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)