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
77
S
49
G
35
Posts: 358
Reputation: 22,433

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
4
G
2
Posts: 59
Reputation: 3,779

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
77
S
49
G
35
Posts: 358
Reputation: 22,433


Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Aquanex2, Congrats2u, Moordhuis, omnipaws, tarek2 and 11 guests