Creating irregularly shaped turret ranges

Get help using Construct 2

Post » Thu Aug 01, 2013 10:02 pm

Hi all,

I'm using a turret in my game, but I want it to unaquire targets as they leave a certain irregularly-shaped space. So far I've only been able to get it to unaquire the targets when their x or y reaches a certain point. However, it often reaquires the same target. Is this possible currently in construct2?

Thanks,
Chase
B
5
S
1
G
1
Posts: 18
Reputation: 566

Post » Thu Aug 01, 2013 10:45 pm

Simple. Just create an invisible Zone sprite of any shape and set the Turret to automatically target an object (Add object to target).

Then check if the object is overlapping the Zone.
If it is, then enable the Turret, if not, then disable the Turret.
B
12
S
4
G
2
Posts: 59
Reputation: 3,799

Post » Fri Aug 02, 2013 3:06 am

That's a good idea, but won't that completely disable the turret? I just want to disable the turret for that particular object.

There will be a number of other targetable objects on the stage, all part of the same family, which is being targeted as a whole.

B
5
S
1
G
1
Posts: 18
Reputation: 566

Post » Thu Aug 15, 2013 10:29 pm

Bump. Any thoughts? I've been attempting a few things, but so far nothing has worked.. There must be some way to make an object an ineligible target...
B
5
S
1
G
1
Posts: 18
Reputation: 566

Post » Thu Aug 15, 2013 11:29 pm

@chasethomas

Any object is an ineligible target by default...you have to add an object as the target of the turret. If you then want it to unacquire targets, use the unacquire turret target action.
B
45
S
14
G
70
Posts: 1,950
Reputation: 41,730


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests