floor switch order logic

Get help using Construct 2

Post » Thu May 09, 2013 1:29 pm

Hi all,

I've been trying to work out the logic for the below and cant figure it out, help would be greatly appreciated

I have 1 instance object that i use as a floor switch.
It has 2 frames, 0=not activated, 1=activated
I have 4 of these in a line left to right on the floor
The switches must be activated in the correct sequence to open a door.
When the user stands on 1 of the 4 switches it frame value changes to 1
User overlap switch then set switch frame to 1

The logic is like this(which does not seem to work)...

If user overlaps switch then set switch frame =1


If switch UII=122 and frame=1 then set (value)=active
If switch UII=123 and frame=1 then set (value)=active
If switch UII=124 and frame=1 then set (value)=active
If switch UII=125 and frame=1 then set (value)=active
    

If switch UII=122 and frame=1
If user overlap switch and switch UII=123 then (value)=active

If switch UII=123 and frame=1
If user overlap switch and switch UII=124 then (value)=active

If switch UII=124 and frame=1
If user overlap switch and switch UII=125 then (value)=active




If switch UII=122 and(value)=active
If switch UII=123 and(value)=active
If switch UII=124 and(value)=active
If switch UII=125 and(value)=active If then set door frame open





LI0NHART2013-05-09 13:30:30
B
14
S
4
G
3
Posts: 77
Reputation: 4,011

Post » Thu May 09, 2013 7:25 pm

@LI0NHART

Hi
Not sure if this is what you want..


Floor Switchspongehammer2013-05-09 19:30:12
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Sat May 11, 2013 11:22 am

exactly what i'm trying to do that a lot spongehammer :)
B
14
S
4
G
3
Posts: 77
Reputation: 4,011

Post » Sun May 12, 2013 1:42 am

No Problem. Glad to be of help
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013


Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 25 guests