How can I check how many instances of an object are in contact with each other?
For example, if I have 5 identical objects, and out of those 5, 4 are touching each other, how can I get the number 4?
How can I check how many instances of an object are in contact with each other?
For example, if I have 5 identical objects, and out of those 5, 4 are touching each other, how can I get the number 4?
I would go with something as stupid as
ObjectA is in collision with ObjectA
Change ObjectA opacity set to 254
INVERTED ObjectA is with collision with OjbectA
Change ObjectA opacity set to 255
This would filter ones that are colliding with each other or not
MAYBE instead of checking inverted condition you would need to add condition and type NOT in search bar and add that and under it shove in ObjectA is with collision with OjbectA
BUT that is if inverted condition would not work
Now last thing is to count them
And now you could check if ObjectA opacity = 254
Pick all instances of ObjectA
And now in sub event you can either change text object to PicketInstancesCount(ObjectA) ← i do not remember is that correct expression but autofill will help you just type instance
Thanks…this think with opacity actually is cool and it works. But now I have a prolem how to calculate them. I dont understand this “pick all instances - block”