How do I count overlapping objects.

Get help using Construct 2

Post » Sun Jul 06, 2014 9:52 pm

Hi all,
I have a situation like the .capx attacked.
The are multiple objects randomly moving around, also their number can change constantly.
In any given time, I need to know exactly ( for scoring reasons) how many of those abject are overlapping another sprite ( in the file is the static, big green sprite).
Ideally I would use an expression, but could not find any that I could use.
Thanks,
You do not have the required permissions to view the files attached to this post.
Last edited by rikk on Sun Jul 06, 2014 10:21 pm, edited 1 time in total.
B
4
Posts: 10
Reputation: 220

Post » Sun Jul 06, 2014 10:05 pm

.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
231
Posts: 3,695
Reputation: 129,366

Post » Sun Jul 06, 2014 10:21 pm

Thanks Blackhornet.

I can see your solution, but from the file appears does not appear that the system is counting the number of moving objects overlapping the static (green) sprite.
My fault for not explaining properly the problem.
B
4
Posts: 10
Reputation: 220

Post » Sun Jul 06, 2014 10:26 pm

No, my fault - you did say overlapping the green sprite.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
231
Posts: 3,695
Reputation: 129,366


Return to How do I....?

Who is online

Users browsing this forum: lordsas and 68 guests