"Is overlapping at offset" is ignoring the other conditions

Get help using Construct 2

Post » Fri Dec 18, 2015 3:00 pm

When trying to work around the lack of custom solid selection, I've hit another dead end. I can't get the "Is overlapping" and "Is overlapping at offset" to accept another condition in the same event.
I am trying to check if the player is overlapping only with the ground that is on layer 3 or any other condition.
Image
Am I doing anything wrong ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Fri Dec 18, 2015 3:09 pm

That event is checking whether the player is NOT overlapping the ground isn't it? So it's only true if the player is not overlapping the ground. You want it to trigger when the player is overlapping?
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Fri Dec 18, 2015 3:17 pm

Yes, while the player is not overlapping ground that is on layer 3, do stuff.
I other words I want the action to be made if any of the following conditions is met:
- the player is not overlapping ground
- the player is overlapping ground that is on another layer than layer 3

The action is not made if:
- the player is overlapping ground that is on layer 3
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Fri Dec 18, 2015 3:19 pm

It's because the player not overlapping ground overrides everything, it'll never check if the player is overlapping ground. You need to separate them out.

If player is not overlapping ground > do this.

If player is overlapping ground
ground is not on layer 3 > do this.
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Fri Dec 18, 2015 3:43 pm

Negated doesn't always mean what you think it will.
Else does however.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Fri Dec 18, 2015 3:45 pm

Yeah separating with Else is fine : D
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Mon Dec 21, 2015 4:24 pm

Thank you
B
49
S
15
G
6
Posts: 534
Reputation: 7,195


Return to How do I....?

Who is online

Users browsing this forum: batto and 23 guests