Skip to lesson
LESSON 12 / 44 · Intermediate

Crouch and slide under obstacles

Build a low tunnel using the player’s crouch and slide settings.

Open editor in a new tab ↗

Before you begin

Use a solid floor and a ceiling platform above it.

Build it step by step

  1. Enable player actions. Set Crouch height % to about 55 and choose a Crouching speed below Walking speed.

  2. Inspect the Crouch and Slide input actions and assign comfortable keys in Game controls.

  3. Place the ceiling so a standing character cannot pass but the crouched body has room. Use Object details values for consistent spacing.

  4. In Play, crouch and enter the tunnel. Release Crouch under the ceiling: the player should wait for clear space before standing.

  5. Try a slide from outside the tunnel. Tune Sliding speed, Slide seconds and Slide cooldown; keep enough clear space at the exit.

TRY THIS IDEA

Practical example

A tunnel can be a route choice: walk around it safely or crouch through a shortcut.

Test your work

The player crosses while low and cannot stand up inside the solid ceiling.

If it does not work

If the player is stuck, verify the available height and width. Do not rely only on transparent padding in the artwork to judge clearance.

MAKE IT YOUR OWN

Student challenge

Make two tunnels: one comfortable for crouching and one best approached with a slide.

Show the result to a partner. Explain what you changed and how you tested it.

Keep exploring