"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: 531
Reputation: 7,189

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
45
S
15
G
73
Posts: 2,026
Reputation: 43,434

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: 531
Reputation: 7,189

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
45
S
15
G
73
Posts: 2,026
Reputation: 43,434

Post » Fri Dec 18, 2015 3:43 pm

Negated doesn't always mean what you think it will.
Else does however.
Image ImageImage
B
168
S
50
G
164
Posts: 8,238
Reputation: 105,595

Post » Fri Dec 18, 2015 3:45 pm

Yeah separating with Else is fine : D
B
45
S
15
G
73
Posts: 2,026
Reputation: 43,434

Post » Mon Dec 21, 2015 4:24 pm

Thank you
B
49
S
15
G
6
Posts: 531
Reputation: 7,189


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Ryan Kocourek and 2 guests