How do I preserve container position relationship?

Get help using Construct 2

Post » Fri Dec 05, 2014 4:41 pm

So I've realized I can get better behavior by creating and destroying objects as needed rather than hiding them outside of the layout. But when I create an object everything attached to that object via a container appears on top of a single point. I would like to preserve the positional relationship. I have the objects in the container pinned to the parent (and this is performed at layout start) but this doesn't seem to help.

How do I make sure the my tank has the barrel in the proper position when I create a new one rather than the barrel appearing on top of the tank?
B
10
S
2
G
2
Posts: 73
Reputation: 1,044

Post » Fri Dec 05, 2014 5:05 pm

It looks like I'll have to create an image point for each object and an event to move and pin each object on the parent at creation.
B
10
S
2
G
2
Posts: 73
Reputation: 1,044

Post » Fri Dec 05, 2014 5:07 pm

You need to ajust the positions of your element when they are created. Best way to do that is to use the "on created" trigger.
B
71
S
30
G
24
Posts: 984
Reputation: 19,003


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, MaxxMunnn, Uk4dee and 18 guests