Using the Pathfinding behaviour for a sentry

Get help using Construct 2

Post » Wed Feb 13, 2013 12:30 pm

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 ^_^
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Wed Feb 13, 2013 2:35 pm

Something like this?

Sentry demo

It should be easy to expand and add more functionality on top of that :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,202


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, DemantDigitalArt, Magistross and 27 guests