container problem?

Get help using Construct 2

Post » Mon Aug 12, 2013 8:49 am

Hi, i have a container object and i added a block into my container. The block was duplicated several times.

When i play it, there appears to be several duplicate of the parent object.

Anyone knows what's the problem?
B
9
S
1
Posts: 80
Reputation: 687

Post » Mon Aug 12, 2013 11:56 am

Can you post the .capx plz. Will make it easier to help you.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Mon Aug 12, 2013 2:16 pm

Here's the file

http://www.sendspace.com/file/88sbm3

the parent is being duplicated 4 times?
B
9
S
1
Posts: 80
Reputation: 687

Post » Mon Aug 12, 2013 5:04 pm

That's how containers work. If you create one of the objects then it automatically creates all of the other objects in the container.

"Parent" and "child" are kind of misleading names. A container is a group of objects. You have a group of 2 objects - a red sprite and a green sprite. When you run the layout you get 4 groups - 1 red and 1 green in each. If you want a group of 5 objects, you need to make 4 separate green objects and add them all to the container.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650


Return to How do I....?

Who is online

Users browsing this forum: datiel12, tarek2 and 65 guests