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,939

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
397
S
236
G
88
Posts: 24,420
Reputation: 194,549


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests