Page 1 of 1

Changing wall object states with switches

Posted: Fri Feb 19, 2010 4:13 am
by Saumun
I'm getting back into dungeon building after a long lay off (12ish months)

Alas, other aspects of life got in the way.

This may be a very basic thing, but soft.....

How do i get two switches to change state when one or the other is pressed?
I have an opened door. Once through, there are two switches. One to close (in normal state), and one to open (in depressed state).

When i press the switch to close the door, how do i get the depressed switch (to re-open the door) to automatically revert to the normal state and viceversa?

I don't want to use the toggle. I want each switch to change the other's state when pressed.

Re: Changing wall object states with switches

Posted: Fri Feb 19, 2010 11:41 am
by Lord_BoNes
By memory, deactivate the switch that is currently reacting to the mouse click, and activate the other one... you may have looping issues though, IE:
switch 1 (out) activates, and flips state with switch 2 (in)... before the game even advances a tick, switch 2 would react to the same mouse click and flip back... creating an infinate loop. You may be finding this hard to debug.

Re: Changing wall object states with switches

Posted: Fri Feb 19, 2010 12:18 pm
by Jan
OT: Glad you're back Saumun! I'm really looking forward to playing your new dungeon, because Dark Reign was fantastic! :)

Switches, switches, oh no, more switches... :wink:

Re: Changing wall object states with switches

Posted: Sat Feb 20, 2010 4:09 am
by Saumun
Thank you for the kind words Jan...

I'm afraid i have nowhere near as much time on my hands these days, but i will try to keep at it. And.... (fingers crossed against a potential relapse), no switch overload or rapid monster respawn in sight so far.