| won't work apparently....

Get help using Construct 2

Post » Thu Jan 15, 2015 6:20 pm

event.png

(picture because of easier to show instead for writing)

Above selection will only be true when it is SOLIDWALL. The numbers being EXIT, TUBEIN or EGG won't be honored even when these exist.

How can I do (in one line) so that it will work?

I would prefer to have it in one line because it is in a group of nine lines (of explosion pattern)

I know I am bad with logic stuff.. so please help me. :)

(I am back with "eventing" (what would we call coding? :D) )
You do not have the required permissions to view the files attached to this post.
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Thu Jan 15, 2015 6:25 pm

You can't OR numbers together like that. Use a local variable to store the Value-at result, and then test:

local != SOLIDWALL & local != EXIT & local != TUBEIN & local != EGG.

Note, I'm guessing you don't want ANY of those values, so you check with AND not OR.
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Thu Jan 15, 2015 6:43 pm

@blackhornet to the rescue again (yes I remember)

This is confusing me a bit, but I will try to use my grey cells later on. Have to attend to menial matters such as making dinner now!
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Thu Jan 15, 2015 8:27 pm

And now I have deciphered your solution into events. I made it too convoluted in my head, but it was quite simple really. Thank you.
B
58
S
18
G
13
Posts: 447
Reputation: 10,740


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests