"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
48
S
15
G
6
Posts: 518
Reputation: 7,138

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
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

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
48
S
15
G
6
Posts: 518
Reputation: 7,138

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
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Fri Dec 18, 2015 3:43 pm

Negated doesn't always mean what you think it will.
Else does however.
Image ImageImage
B
165
S
49
G
146
Posts: 8,034
Reputation: 96,058

Post » Fri Dec 18, 2015 3:45 pm

Yeah separating with Else is fine : D
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Mon Dec 21, 2015 4:24 pm

Thank you
B
48
S
15
G
6
Posts: 518
Reputation: 7,138


Return to How do I....?

Who is online

Users browsing this forum: LeirSchiessl, Phoenixbowman, raulcg1981 and 12 guests