Overlapping not working in OR statement

Get help using Construct 2

Post » Tue Nov 18, 2014 1:40 am

I cannot figure out why my overlapping works when it's not in an OR statement, but if I make an OR statement, it does not work. Thank you for your help.

Why does this work?
works.jpg

But this does not?
doesnot.jpg

My Z order
zorder.jpg
You do not have the required permissions to view the files attached to this post.
B
7
S
2
Posts: 34
Reputation: 670

Post » Tue Nov 18, 2014 1:48 am

Could be wrong, but

The opposite of
A OR B OR C OR D
is not
(NOT A) OR (NOT B) OR (NOT C) OR (NOT D)
But
(NOT A) AND (NOT B) AND (NOT C) AND (NOT D)

(De Morgan's law if I am not mistaken)

Basically, delete the OR block on the second event
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Tue Nov 18, 2014 1:57 am

Use ELSE.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Tue Nov 18, 2014 9:41 am

DoomEyes here it is how it's done
You do not have the required permissions to view the files attached to this post.
B
245
S
39
G
15
Posts: 1,944
Reputation: 40,252

Post » Tue Nov 18, 2014 6:22 pm

Thank you Aphoridite and blackhornet for your help. And thank you, Lordshiva, for your code example. This helped me understand a lot, and this part of my game is working properly now.
B
7
S
2
Posts: 34
Reputation: 670


Return to How do I....?

Who is online

Users browsing this forum: camtray, Lancifer, marcoscodas and 9 guests