Turret pick / add target problem

Bugs will be moved here once resolved.

Post » Tue May 05, 2015 6:06 pm

Problem Description
____ It seems to me that I can't pick instances of a given object that has the Turret behavior and add targets to it and only to the picked one (reason of posting: I would like to make a space shooter game that has point defense turrets that target rockets and enemy ships while having turrets that are not point defense that target only enemy ships, not rockets). ____

Attach a Capx
____ h*t*t*p*s://w*w*w.dropbox.com/s/ndizkf50zibs8nx/Turret_pick_bug.capx?dl=0 (Is this the way I attach the file? If not, sorry for my incompetence, this is my first bug report) ____

Description of Capx
____ First turret (I've given it "variable 1") should target green, second turret should target red and third turret should target nothing. At least in my opinion. But all turrets target both targets. You can drag the targets closer to the turrets to see it. ____

Steps to Reproduce Bug
  • Step 1: Create a Sprite and give it the turret behavior.
  • Step 2: Make 3 instances of it by copying them.
  • Step 3: Give them different instance variables to be able to pick only one of them. I created texts besides them for reference.
  • Step 4: Create 2 different targets, for example a green and a red one.
  • Step 5: In the event sheet pick one of the turrets (Turret.variable=1) and add the green target to it.
  • Step 6: In the event sheet pick an other turret (Turret.variable=2) and add the red target to it.
  • Step 7: Run layout. Drag targets closer and farther to see result.

Observed Result
____ All instances of a given object with the turret behavior target both rectangle targets. ____

Expected Result
____ First turret (I've given it "variable 1") should target green rectangle, second turret should target red rectangle and third turret should target nothing (since the events didn't even pick it). ____

Affected Browsers
  • Chrome: (I don't have Chrome installed)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
____ Windows 7 Ultimate, Service Pack 1 (activated, legal one) ____

Construct 2 Version ID
____ Release 200 (32-bit), Personal license ____

And of course I'm sorry if it's not an actual bug but I would like to get help either way.
Posts: 4
Reputation: 440

Post » Thu May 14, 2015 1:51 pm

Closing as not a bug: it is currently by design that the targets are shared for the entire object type. The 'add target' action affects all instances, not just the picked ones. I guess this is a feature request, but it isn't a bug.
Scirra Founder
Posts: 24,248
Reputation: 192,238

Post » Sun May 17, 2015 6:08 pm

Thank you for your reply.
Posts: 4
Reputation: 440

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest