OR... ELSE

New releases and general discussions.

Post » Mon May 19, 2008 2:32 am

How do you exactly use the or and else command? I always get an error
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Wed May 21, 2008 5:17 pm

Use OR conditions between other conditions to check if any of them are true rather than all of them, eg:

+ Left arrow key pressed
OR
+ Right arrow key pressed
-> Do stuff...

'Else' can be put in the next event to run when the previous event wasn't true, eg:

+ Left arrow key is down
-> Do stuff...
+ Else
-> Do stuff...

There might be bugs though, so let me know if its not working when you do that...
Scirra Founder
B
383
S
224
G
86
Posts: 24,106
Reputation: 190,410


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests