Changing wall object states with switches

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Saumun
High Lord
Posts: 2238
Joined: Fri Feb 20, 2009 3:03 am
Location: The Ether

Changing wall object states with switches

Post 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.
“Grynix Ernum Quey Ki Skebow Rednim U Os Dey Wefna Enocarn Aquantana” - Anon
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Changing wall object states with switches

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Jan
Mighty Pirate
Posts: 2760
Joined: Tue Sep 23, 2008 4:55 pm
Location: Scumm Bar, Czech Republic

Re: Changing wall object states with switches

Post 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:
Finally playing and immensely enjoying the awesome Thimbleweed Park-a-reno!
User avatar
Saumun
High Lord
Posts: 2238
Joined: Fri Feb 20, 2009 3:03 am
Location: The Ether

Re: Changing wall object states with switches

Post 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.
“Grynix Ernum Quey Ki Skebow Rednim U Os Dey Wefna Enocarn Aquantana” - Anon
Post Reply