How switch blocks work
- Two colors: orange blocks are solid at the start of each run; cyan blocks are empty and only show their outline.
- One switch flips everything: touching a switch swaps the two colors: orange empties, cyan fills, and every switch in the level shares this same state.
- One touch, one flip: the switch flips once when the hero touches it; to flip again, the hero must leave it and touch it (or another switch) again.
- No crushing: if a block becomes solid where the hero stands, it waits until he has moved away before appearing.
- Back to the start: after a death, the blocks are back to their initial state: orange solid, cyan empty.
Pattern 1: the bridge
Put a row of cyan blocks over a gap or a lava pool, and the switch before it. The player sees the outline of the bridge, understands that it can appear, and looks for the switch. It is the perfect first use: obvious, and it teaches the rule.
Pattern 2: the gate that closes behind you
An orange wall blocks the way; once the switch is hit, it disappears, but a cyan wall appears behind the player. The level now only goes forward, which is a great way to stage a point of no return. Make sure the area ahead contains everything needed to finish.
Pattern 3: the back-and-forth
Place two switches far apart, with paths that alternate between orange and cyan. The player has to flip, cross, flip again further on. Each switch changes the shape of the whole level, which makes even a small level feel rich.
Pattern 4: the mid-air switch
Place a switch in the air, at the top of a jump or of a spring. Touching it in flight changes the blocks under the player before they land: a cyan floor appears just in time, or an orange ceiling opens. It is a spectacular trick for experienced players.
Pattern 5: the speedrun line
Design an optional switch that opens a faster route for those who dare to grab it. Like keys and doors, it gives the leaderboard depth: casual players ignore it, experts fight over it.
Keep the state readable
The player must always understand what will happen when they hit the switch. Show both colors near the first switch, avoid huge areas where you cannot see which blocks are solid, and never put a cyan floor over spikes without a switch the player can understand.
And as always, test every order of play: what happens if the player hits the switch twice, or goes back? Our level design tips explain how to playtest efficiently.