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
96
S
31
G
15
Posts: 1,180
Reputation: 16,017

Post » Sat Jan 11, 2014 4:47 am

Yes, first make the OR events, then make sub events under it.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

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
96
S
31
G
15
Posts: 1,180
Reputation: 16,017

Post » Sat Jan 11, 2014 4:58 am

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

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
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Sun Jan 12, 2014 1:28 am

okay thanks!
B
96
S
31
G
15
Posts: 1,180
Reputation: 16,017


Return to How do I....?

Who is online

Users browsing this forum: Laura_D, odiusfly and 17 guests