Author Topic: moving wall-open area?  (Read 4473 times)

zeldalover123

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
moving wall-open area?
« on: January 07, 2008, 06:11:14 PM »
in some levels, when you pass through a space, a wall closes behind you. how do you do that?
you will all bow before me!!!! you'll see!!! YOU'LL SEE!!!!!!!!!!!!!!!!!!!! PM me if you want to be my slave! (or to get my attention)

Jonathan_NL

  • Sr. Member
  • ****
  • Posts: 488
    • View Profile
moving wall-open area?
« Reply #1 on: January 07, 2008, 08:13:59 PM »
It's really an object falling through the ceiling, connected to something above it with push pistons (it should also be possible to use pull pistons from below, but that's less stable). The gap in the ceiling is hidden by tiles in the front layer. The object (usually an anchor) from which the pistons were connected has red/amplitude=distance to move, green/cycle time=2*closing time, blue/duration=0.5. Example screenshot showing hell3's mechanism. The green anchor is what I selected. You can observe its 'color'. Another object, a one-time area switch, is highlighted in red by Gish because that's what the green object is linked to. When there is such a link any pistons connected from the green object won't do anything at first, until the red object is 'activated' (if it's a switch, when it's pressed (or entered in case of an area switch), and if it's a one-time switch it will only activate once). Every time it activates the pistons will move as specified in the green object's 'color'.
I rarely check this forum anymore. Feel free to send me a PM if you want my attention.

zeldalover123

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
moving wall-open area?
« Reply #2 on: January 07, 2008, 08:32:03 PM »
so the area swich is located in the object editor, or somewhere else?
you will all bow before me!!!! you'll see!!! YOU'LL SEE!!!!!!!!!!!!!!!!!!!! PM me if you want to be my slave! (or to get my attention)

Jonathan_NL

  • Sr. Member
  • ****
  • Posts: 488
    • View Profile
moving wall-open area?
« Reply #3 on: January 07, 2008, 08:42:33 PM »
The one-time area switch is object type 16, as described in gisheditor.txt.
I rarely check this forum anymore. Feel free to send me a PM if you want my attention.

zeldalover123

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
moving wall-open area?
« Reply #4 on: January 07, 2008, 11:06:48 PM »
thx
you will all bow before me!!!! you'll see!!! YOU'LL SEE!!!!!!!!!!!!!!!!!!!! PM me if you want to be my slave! (or to get my attention)