Use "or" for some conditions only.

Get help using Construct 2

Post » Tue Apr 15, 2014 12:19 am

Damn i am beginning regretting the freedom of code :'(

So among to the inexistence of "disable collisions with" function, "set origin point to" function comes a third issue.

It's about or blocks.
Basically I want to use or blocks in addition to an existing condition.
Like

I have this:

-If woman overlapping with zone 1
-And if boy overlapping zone 2 -----> woman move to boy

But i want this

-If woman overlapping with zone 1
-And if: *boy overlapping zone 2 -----> woman move to boy
OR*boy overlapping zone 3
OR*boy overlapping zone 4


Sub events do not work



I am forced to do the same condition for each zone. There are. 9 zones. So 9*9=81conditions...sweet :|
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Tue Apr 15, 2014 12:52 am

Perhaps you could do it with else conditions?
B
8
S
1
Posts: 76
Reputation: 949

Post » Tue Apr 15, 2014 1:27 am

izicial wrote:Perhaps you could do it with else conditions?


Nah else is a break whenever the if condition does not happen.
What i want is:

I want an ice-cream and (an apple juice or an orange juice or a multi-juice)

:(
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Tue Apr 15, 2014 1:33 am

You can use expressions, although it doesn't work directly with the overlap test. You might need to use some temporary variables.

viewtopic.php?f=147&t=101625&p=767455#p767455
ImageImageImage
B
71
S
21
G
222
Posts: 3,652
Reputation: 124,733

Post » Tue Apr 15, 2014 6:48 am

damn blackhornet.
thank you
B
12
S
4
G
1
Posts: 241
Reputation: 1,699


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], SputnikCZ and 3 guests