is OR + AND possible?

Get help using Construct 2

Post » Sat Jan 11, 2014 4:44 am

is it possible to mix ORs with ANDs in C2?

i.e.

If Keyboard Spacebar OR Gamepad button 0 pressed AND GunReady is True
   Then Spawn Projectile
Else
   Countdown Reload etc..


I'm basically trying to add controller support..
B
103
S
35
G
16
Posts: 1,227
Reputation: 17,198

Post » Sat Jan 11, 2014 4:47 am

Yes, first make the OR events, then make sub events under it.
B
62
S
20
G
57
Posts: 1,077
Reputation: 36,531

Post » Sat Jan 11, 2014 4:50 am

right, you could nest it.. I was just wondering if there is a way to do it on the same level... I guess not?
B
103
S
35
G
16
Posts: 1,227
Reputation: 17,198

Post » Sat Jan 11, 2014 4:58 am

There is no way to embed AND with OR into the same Event. pitty :|
B
94
S
18
G
9
Posts: 2,457
Reputation: 15,177

Post » Sun Jan 12, 2014 1:27 am

Yes ..Jobel... Burvey is right..nesting as mentioned is the proper procedure
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
36
S
13
G
8
Posts: 318
Reputation: 7,710

Post » Sun Jan 12, 2014 1:28 am

okay thanks!
B
103
S
35
G
16
Posts: 1,227
Reputation: 17,198


Return to How do I....?

Who is online

Users browsing this forum: Kyatric, Metathronos, sinoscuras and 11 guests