[Request] Add Turret target for specific object instances

Discussion and feedback on Construct 2

Post » Sun Oct 04, 2015 8:16 pm

I am trying to use the same TURRET object for both the player and the enemies. Using the Turret Behavior, here is what I have so far

Code: Select all
Code: Select all
    System | Pick TURRET instance 1
    --- TURRET | Add Turret target TARGET


The issue is that it adds TARGET as a target for all of the TURRET objects on screen (not just the "nth" instance of the object). This would mean that the Players TURRET object will attempt to target itself.. It appears that Add Turret target is a global action, regardless of the objects picked in the condition.

This is a request to fix this limitation of the Turret behavior that we all know and love!

Thanks.
B
78
S
25
G
9
Posts: 85
Reputation: 9,255

Post » Mon Oct 05, 2015 2:54 am

In the meantime, just use separate turrets (or families of turrets) for player and enemies.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Tue Dec 29, 2015 9:50 pm

I'm now having this issue, too. I really don't want to have to duplicate each object type for each player. With 6 races and 20 units each, that means I'll have to have (for 4 players) 480 objects (3/4 of them redundant duplicates...) as opposed to 120...

Is there a work-around? I'll be a bit surprised if there isn't.
B
7
S
1
Posts: 39
Reputation: 511

Post » Thu Jan 26, 2017 4:06 pm

Hi. Still no plans to change/fix this?

I just tried this:
Image
to assign the target only to turrets with a specific instance variable but all turrets attack the Enemy sprite. :cry:
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
16
G
6
Posts: 743
Reputation: 9,310


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests