How do I check if there is a solid object at X,Y ?

Get help using Construct 2

Post » Mon Nov 03, 2014 9:42 pm

What I am actually trying to do is to make a deposit full of boxes, but if I add platform or other behavior to each box, the CPU Utilisation grows considerably...

So I am trying to mimic in events only the falling from platform behavior, but for that, I need to know how do I check if there is a solid object below each box (another box, ground ... etc) ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Mon Nov 03, 2014 11:09 pm

Would is overlapping at offset work?
inversed offcourse..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 04, 2014 12:24 am

LittleStain wrote:Would is overlapping at offset work?
inversed offcourse..

This should work, but I was thinking If i can detect [Solid] objects (without having to make an "OR" for all possible objects event or create a family of [Solid] objects) ... Simply to detect if at X,Y there is a solid object.
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Tue Nov 04, 2014 6:51 am

You could create two families.. the one you want to check and the one you want to check against..
objects can be part of more than one family..

The X,Y you want to check should be relative to another object, right?
Or would you like to check each X,Y in your layout every tick? (that sounds cpu-intensive)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: David181, evillair and 57 guests