Using the Pathfinding behaviour for a sentry

0 favourites
  • 2 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Simply put, I am trying to use the pathfinding behaviour as part of a sentry mechanic.

    While controlling the black circle, you shoot (by pressing space) and when the stone impacts the wall, it will create a sound (represented graphically).

    I've tried all sorts of combos, but can not get the red circles (the sentries) to behave properly.

    Ideally, when they are not near a sound trigger, they would march right, until they hit a wall (or invisable box) then head towards their initial position, and once there, repeat the action. If triggered, they would go to the sound, and once they are there, they would go back to patrolling.

    This (https://dl.dropbox.com/u/108799982/Capx%20Demos/Sentry2.capx) is a copy of the bare bones of the problem I'm working on. Any and all help is appreciated, and can be rewarded with cupcakes ^_^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Something like this?

    Sentry demo

    It should be easy to expand and add more functionality on top of that :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)