UIDs of overlapping duplicate objects

Get help using Construct 2

Post » Tue Aug 08, 2017 7:39 pm

I'm wondering if there is an expression to obtain all UIDs of duplicate objects that are overlapping.

To offer more clarity on what I'm trying to do, I'm thinking something like this:
If sprite = is overlapping sprite -> call function "overlap" (sprite.UID1) (sprite.UID2)

Thanks in advanced for any help!
B
59
S
35
G
23
Posts: 341
Reputation: 17,032

Post » Tue Aug 08, 2017 7:52 pm

Not really. But you can do this:

Add an Array.
Start with size (0,1,1)

(A) is overlapping (B)
_____For Each (A)
_________Array > push ... value = A.UID

The array contains now all UID's for (A)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Aug 08, 2017 11:47 pm

99Instances2Go wrote:Not really. But you can do this:

Add an Array.
Start with size (0,1,1)

(A) is overlapping (B)
_____For Each (A)
_________Array > push ... value = A.UID

The array contains now all UID's for (A)


Thanks for your help!
B
59
S
35
G
23
Posts: 341
Reputation: 17,032


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 16 guests