Container Help

Get help using Construct 2

Post » Tue Jul 23, 2013 10:04 pm

I've read the manual on containers but I'm not sure I understand the picking. Here is an example file:

Container Capx

The 1 red and 1 blue sprite are in a container together. When you move the mouse close to a red sprite, it gets picked and changes size correctly. I would expect the one blue sprite in the container to be picked and moved randomly too, however both blue sprites get picked.
Am I missing something?

B
80
S
52
G
42
Posts: 370
Reputation: 26,330

Post » Wed Jul 24, 2013 12:16 am

Interesting.

I think it's because "Pick by Evaluate" picks individual instances and doesn't include any instances even in a container that evaluate to zero.

Try using Mouse: Cursor is over "Sprite" to see the difference.
B
12
S
5
G
2
Posts: 59
Reputation: 3,859

Post » Wed Jul 24, 2013 2:42 am

Huh...yeah that is interesting. Thanks for checking it out. I think it would make sense to pick the container objects also to be consistent with other picking events. Going to submit as a bug.
B
80
S
52
G
42
Posts: 370
Reputation: 26,330


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Kyatric and 54 guests