Studio › Manual › 3D rooms

Classic doors and push walls

For levels in the style of early-90s first-person shooters, made of whole blocks:

  • Room > Game > Make Classic Door (⌃⌥3): a sliding door. It slides sideways its own width in 0.91 s when the player presses Use facing it (within its reach), stays open 4.3 s (Stays open) and closes by itself, but never on the player or an actor standing in its doorway. Use on an open door closes it. Locked, Use says "Locked: needs the gold key" until the player holds that key. Opens with Use off: it opens when the player comes near. Making a door classic again keeps its lock.
  • Make Push Wall (⌃⌥5): a secret wall. Use facing it slides it away from the player along the nearest grid direction, Cells cells (2) of Cell metres (2), Time seconds a cell (1.83), solid all the way; it checks each next cell is free first, moves once only and counts its Kind (secret) up by one.
  • Make Switch Exit (⌃⌥7): an exit pressed with Use facing it (an elevator switch), not walked onto. It stays solid.

Use is E, or Space when the player can't jump (jump height 0), or a gamepad's X or Y; it reaches what's in front of the player (60° either way) within the thing's reach. Game Props has them ready-made with pixel textures: Retro Sliding Door, Retro Gold Door, Retro Silver Door, Retro Push Wall and Retro Elevator Switch.

In GameMaker: door_stay, door_use, door_size (the doorway), exit_use, pushwall_cells, pushwall_cell, pushwall_time and pushwall_kind in the creation code; r3d_behave_use() presses Use from your code, r3d_door_open(door, true) opens a door for an enemy, r3d_pushwall_start(wall, dir) pushes a wall, r3d_pickup_count("secret") counts the secrets.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.