How to use & AND and | OR operators

Get help using Construct 2

Post » Sun Apr 27, 2014 1:29 pm

I want to know how do I compare 1 object with another 4objects, that means these 4objects must obey and have the same values.
example sprite1.number = sprite2.number & sprite3.number & sprite4.number
Is it correct or how should I put?
B
5
Posts: 35
Reputation: 331

Post » Sun Apr 27, 2014 2:32 pm

sprite1.number = sprite2.number & sprite1.number = sprite3.number & sprite1.number = sprite4.number
ImageImageImage
B
71
S
21
G
233
Posts: 3,697
Reputation: 130,370

Post » Mon Apr 28, 2014 11:03 pm

How to use & AND and | OR operators

Just add conditions to the same event (AND). Click on it with the right mousebutton and choose "Make 'or' block" if you what OR.

One method for your problem:
Add conditions to a event if sprite1+n value = sprite2+n.value etc.
B
13
S
4
G
1
Posts: 107
Reputation: 1,337


Return to How do I....?

Who is online

Users browsing this forum: engin20020, gamecorpstudio, rbailey83, tarek2 and 27 guests