R150 - Container is not picking

Bugs will be moved here once resolved.

Post » Thu Nov 14, 2013 11:02 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/47035927/temp/test2.capx

Steps to reproduce:
1. Created a function call
2. Make a family of objects
3. Inside each object, create their cointainers
4. Create a object inside the function call or inside a trigger
5. Right after, Pin the child on the pather

Observed result:
I was working with a similar way of doing it by giving instance variables and setting their father without the containers. But now, using containers to make the job easy on this battleship game, this issue is making impossible to pick the child without workaround.

Expected result:
As a child created by the container, inside the same condition where the panther is created, I expected to see child setting their position against their points and pinned in the same event, but it's missing this part.

I did the exactly same using IDs and Variables, so, if it's not my mistake, it should be a bug.

"While on PREVIEW, press SPACEBAR"

I did this post before researching about the issue and reading every post in this forum possible to find with the tag "Container"

So, this is one part of the manual where said how it should work:
https://www.scirra.com/manual/150/containers
What containers do
Placing objects in a container has the following effects:

1 If one object in a container is created, every other object in its container is also automatically created.
2 If one object in a container is destroyed, every other associated object in its container is also destroyed.
3 If a condition picks one object in a container, every other associated object in its container is also picked.

In the creation event, I picked the created object and checked if it is overlapping the child, and tried several types of combination, like doing it inside the same conditional, without indenting, and checking if outside the whole event, but inside the loop, and, without loop, it still getting the same result.

Browsers affected:
Chrome: yes

Operating system & service pack: Win 8.1 / 7

Construct 2 version: 150
    TELLES08082013-11-14 23:40:21
Image
B
108
S
24
G
18
Posts: 1,372
Reputation: 22,817

Post » Fri Nov 15, 2013 5:33 pm

I'm having trouble understanding what the .capx is supposed to be doing. Can you create a minimal example? It looks like you should be able to demonstrate the problem with say two objects and two events.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Sun Nov 17, 2013 12:36 pm

I think this is the same bug I am getting here

I have made a minimal capx of ittlarkworthy2013-11-17 12:36:42
B
14
S
5
G
1
Posts: 60
Reputation: 1,052

Post » Tue Nov 19, 2013 1:52 pm

@Ashley,

I created an invisible object called ship_placement, where I want locate and pin some images over it.

To make it easy, I did containers of these image objects, and in the same event where I created the ship_placement object, setting the images to move to the designed image point and pin there, but, it's not working.

The same behavior, made differently, where I create the ship_placement and right after creating the images, giving them instance variables IDs, and picking these images later by their ID is working right.

The issue here is about the containers of the ship_placement, and why they are not picked and positioned as designed?
Image
B
108
S
24
G
18
Posts: 1,372
Reputation: 22,817

Post » Mon Nov 25, 2013 4:34 pm

Your .capx appears to produce the same result whichever set of groups I enable/disable. Can you provide an example that shows a clear difference? You should also avoid using randomness in bug report projects, since it makes it hard to reproduce the same thing over and over.Ashley2013-11-25 16:35:29
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests